mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 10:43:14 +00:00
Prevent editbiome in non-studio world
This commit is contained in:
parent
4f3286f520
commit
63a74f2dc9
@ -34,6 +34,12 @@ public class CommandIrisStudioEditBiome extends MortarCommand
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!Iris.proj.isProjectOpen())
|
||||||
|
{
|
||||||
|
sender.sendMessage("There is not a studio currently loaded.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if(sender.isPlayer())
|
if(sender.isPlayer())
|
||||||
{
|
{
|
||||||
Player p = sender.player();
|
Player p = sender.player();
|
||||||
@ -46,7 +52,7 @@ public class CommandIrisStudioEditBiome extends MortarCommand
|
|||||||
|
|
||||||
catch(Throwable e)
|
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;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user