From 63a74f2dc9d00c6c456b2333ccaaa2160476c356 Mon Sep 17 00:00:00 2001 From: CocoTheOwner Date: Mon, 8 Mar 2021 18:51:00 +0100 Subject: [PATCH] Prevent editbiome in non-studio world --- .../manager/command/CommandIrisStudioEditBiome.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/volmit/iris/manager/command/CommandIrisStudioEditBiome.java b/src/main/java/com/volmit/iris/manager/command/CommandIrisStudioEditBiome.java index 2084ad663..b391e3b8a 100644 --- a/src/main/java/com/volmit/iris/manager/command/CommandIrisStudioEditBiome.java +++ b/src/main/java/com/volmit/iris/manager/command/CommandIrisStudioEditBiome.java @@ -33,7 +33,13 @@ public class CommandIrisStudioEditBiome extends MortarCommand sender.sendMessage("To use Iris Studio, please enable studio in Iris/settings.json"); return true; } - + + if(!Iris.proj.isProjectOpen()) + { + sender.sendMessage("There is not a studio currently loaded."); + return true; + } + if(sender.isPlayer()) { Player p = sender.player(); @@ -46,7 +52,7 @@ public class CommandIrisStudioEditBiome extends MortarCommand catch(Throwable e) { - sender.sendMessage("Cant find the file. Are you in an Iris world?"); + sender.sendMessage("Cant find the file. Are you in an Iris Studio world?"); } return true;