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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user