Fix command and get

This commit is contained in:
CocoTheOwner 2020-10-25 16:44:18 +01:00
parent 27694036a5
commit 09e37f3951
2 changed files with 3 additions and 2 deletions

View File

@ -24,9 +24,10 @@ public class CommandIrisStudioOpen extends MortarCommand
return true;
}
if(args.length != 1)
if(args.length < 1)
{
sender.sendMessage("/iris std open <DIMENSION> (file name without .json)");
return true;
}
Iris.proj.open(sender, args[0]);

View File

@ -87,7 +87,7 @@ public class AtomicSliver
{
return null;
}
FastBlockData b = block[h];
FastBlockData b = block[h < 256 ? h : 256];
last = M.ms();
if(b == null)