9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-27 11:09:06 +00:00

Merge pull request #622 from CocoTheOwner/unusedSettings

Simplify settings
This commit is contained in:
Dan
2021-09-10 09:13:03 -04:00
committed by GitHub
6 changed files with 74 additions and 120 deletions

View File

@@ -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);

View File

@@ -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;
}