Fix /lb add with automatic ID

This commit is contained in:
UnknownShadow200 2016-12-19 19:16:40 +11:00
parent a57c9a3508
commit 7e7260a321

View File

@ -499,7 +499,7 @@ namespace MCGalaxy.Commands.CPE {
} }
} else { } else {
BlockDefinition[] defs = lvl.CustomBlockDefs; BlockDefinition[] defs = lvl.CustomBlockDefs;
for (int i = Block.Invalid; i >= Block.CpeCount; i--) { for (int i = Block.Invalid - 1; i >= Block.CpeCount; i--) {
if (defs[i] == null) return (byte)i; if (defs[i] == null) return (byte)i;
} }
} }