9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-23 17:19:16 +00:00

Prevent editbiome in non-studio world

This commit is contained in:
CocoTheOwner
2021-03-08 18:51:00 +01:00
parent 4f3286f520
commit 63a74f2dc9

View File

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