mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-25 22:30:52 -04:00
Fix being able to use /lb edit on global block definitions. (Thanks goodlyay)
This commit is contained in:
parent
f6b073f7cc
commit
9d91bab10d
@ -256,6 +256,7 @@ namespace MCGalaxy.Commands {
|
|||||||
if (!CheckBlockId(p, parts[1], global, out blockId)) return;
|
if (!CheckBlockId(p, parts[1], global, out blockId)) return;
|
||||||
BlockDefinition[] defs = global ? BlockDefinition.GlobalDefs : p.level.CustomBlockDefs;
|
BlockDefinition[] defs = global ? BlockDefinition.GlobalDefs : p.level.CustomBlockDefs;
|
||||||
BlockDefinition def = defs[blockId];
|
BlockDefinition def = defs[blockId];
|
||||||
|
if (!global && def == BlockDefinition.GlobalDefs[blockId]) def = null;
|
||||||
if (def == null) { MessageNoBlock(p, global); return; }
|
if (def == null) { MessageNoBlock(p, global); return; }
|
||||||
|
|
||||||
string value = parts[3];
|
string value = parts[3];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user