Fix command and get

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

No files matched your search

@@ -24,9 +24,10 @@ public class CommandIrisStudioOpen extends MortarCommand
return true; return true;
} }
if(args.length != 1) if(args.length < 1)
{ {
sender.sendMessage("/iris std open <DIMENSION> (file name without .json)"); sender.sendMessage("/iris std open <DIMENSION> (file name without .json)");
return true;
} }
Iris.proj.open(sender, args[0]); Iris.proj.open(sender, args[0]);
@@ -87,7 +87,7 @@ public class AtomicSliver
{ {
return null; return null;
} }
FastBlockData b = block[h]; FastBlockData b = block[h < 256 ? h : 256];
last = M.ms(); last = M.ms();
if(b == null) if(b == null)