Merge pull request #622 from CocoTheOwner/unusedSettings

Simplify settings
This commit is contained in:
Dan authored and GitHub committed 2021-09-10 09:13:03 -04:00
commit 2e8f8f258d
6 files changed
+74 -120

No files matched your search

@@ -493,7 +493,7 @@ public class B {
return null;
}
if (bx instanceof Leaves && IrisSettings.get().getGenerator().preventLeafDecay) {
if (bx instanceof Leaves && IrisSettings.get().getGenerator().isPreventLeafDecay()) {
((Leaves) bx).setPersistent(true);
} else if (bx instanceof Leaves) {
((Leaves) bx).setPersistent(false);
@@ -189,7 +189,7 @@ public class VirtualDecreeCommand {
}
private boolean invokeTabComplete(KList<String> args, KList<Integer> skip, KList<String> tabs, String raw) {
if (isStudio() && !IrisSettings.get().isStudio()) {
if (isStudio() && !IrisSettings.get().getStudio().isStudio()) {
return false;
}
@@ -388,7 +388,7 @@ public class VirtualDecreeCommand {
}
public boolean invoke(VolmitSender sender, KList<String> args, KList<Integer> skip) {
if (isStudio() && !IrisSettings.get().isStudio()) {
if (isStudio() && !IrisSettings.get().getStudio().isStudio()) {
sender.sendMessage(C.RED + "To use Iris Studio Commands, please enable studio in Iris/settings.json (settings auto-reload)");
return false;
}