diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-27 21:53:17 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-27 21:53:17 +0700 |
commit | 606543003a9d205b9c0b6f3c7c2c7dafef5770a4 (patch) | |
tree | 9e1aa0ab2c987dc417073072ea1bcb261d502084 /src/main/java/cc/polyfrost/oneconfig/config/compatibility | |
parent | 3430c2f03e1996ddb8e029f6f577af8c2a4a80aa (diff) | |
download | OneConfig-606543003a9d205b9c0b6f3c7c2c7dafef5770a4.tar.gz OneConfig-606543003a9d205b9c0b6f3c7c2c7dafef5770a4.tar.bz2 OneConfig-606543003a9d205b9c0b6f3c7c2c7dafef5770a4.zip |
fix vigilance buttons + fix ukeyboard
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config/compatibility')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/config/compatibility/VigilanceConfig.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/compatibility/VigilanceConfig.java b/src/main/java/cc/polyfrost/oneconfig/config/compatibility/VigilanceConfig.java index 0fbfa62..3115f3a 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/compatibility/VigilanceConfig.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/compatibility/VigilanceConfig.java @@ -91,7 +91,7 @@ public class VigilanceConfig extends Config { options.add(new CompatConfigColorElement(getFieldOfProperty(option), option.getInstance(), getName(attributes), 2)); break; case BUTTON: - options.add(new ConfigButton(() -> ((CallablePropertyValue) option.getValue()).invoke(option.getInstance()), option.getInstance(), getName(attributes), 2, attributes.getPlaceholder())); + options.add(new ConfigButton(() -> ((CallablePropertyValue) option.getValue()).invoke(option.getInstance()), option.getInstance(), getName(attributes), 2, attributes.getPlaceholder().isEmpty() ? "Activate" : attributes.getPlaceholder())); break; } if (attributes.getType() == PropertyType.SWITCH || attributes.getType() == PropertyType.CHECKBOX) { |