From 6cbc2374b381b9677e639c0e2148804e25694d34 Mon Sep 17 00:00:00 2001 From: RePixelatedMC Date: Thu, 15 Feb 2024 20:43:29 +0100 Subject: [PATCH] whoopsies --- .../src/main/java/com/volmit/iris/core/ServerConfigurator.java | 1 - .../main/java/com/volmit/iris/core/commands/CommandIris.java | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/volmit/iris/core/ServerConfigurator.java b/core/src/main/java/com/volmit/iris/core/ServerConfigurator.java index 936b8e26a..cee4cd053 100644 --- a/core/src/main/java/com/volmit/iris/core/ServerConfigurator.java +++ b/core/src/main/java/com/volmit/iris/core/ServerConfigurator.java @@ -105,7 +105,6 @@ public class ServerConfigurator { if (dimensionsFolder.exists() && dimensionsFolder.isDirectory()) { for (File file : dimensionsFolder.listFiles()) { if (file.isFile() && file.getName().endsWith(".json")) { - Iris.info("Found JSON File: " + file.getName() + " in " + dimensionsFolder.getPath()); IrisDimension dim = data.getDimensionLoader().load(file.getName().split("\\Q.\\E")[0]); if (ultimateMaxHeight < dim.getDimensionHeight().getMax()) { ultimateMaxHeight = dim.getDimensionHeight().getMax(); diff --git a/core/src/main/java/com/volmit/iris/core/commands/CommandIris.java b/core/src/main/java/com/volmit/iris/core/commands/CommandIris.java index 699aa2616..dce8d8db0 100644 --- a/core/src/main/java/com/volmit/iris/core/commands/CommandIris.java +++ b/core/src/main/java/com/volmit/iris/core/commands/CommandIris.java @@ -49,6 +49,7 @@ import org.bukkit.entity.Player; import org.bukkit.generator.ChunkGenerator; import org.bukkit.scheduler.BukkitRunnable; +import java.io.Console; import java.io.File; import java.io.IOException; import java.util.Collections; @@ -199,7 +200,7 @@ public class CommandIris implements DecreeExecutor { @Decree(description = "Print world height information", origin = DecreeOrigin.PLAYER) public void height() { - if (sender() instanceof Player) { + if (sender().isPlayer()) { sender().sendMessage(C.GREEN + "" + sender().player().getWorld().getMinHeight() + " to " + sender().player().getWorld().getMaxHeight()); sender().sendMessage(C.GREEN + "Total Height: " + (sender().player().getWorld().getMaxHeight() - sender().player().getWorld().getMinHeight())); } else {