mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Fix /lb add with automatic ID
This commit is contained in:
parent
a57c9a3508
commit
7e7260a321
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user