From 9d91bab10d9e04d6abcc6f4917daa8be812b4ced Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 27 Jan 2016 22:27:08 +1100 Subject: [PATCH] Fix being able to use /lb edit on global block definitions. (Thanks goodlyay) --- Commands/building/CustomBlockCommand.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Commands/building/CustomBlockCommand.cs b/Commands/building/CustomBlockCommand.cs index 97437653b..e7ee1e949 100644 --- a/Commands/building/CustomBlockCommand.cs +++ b/Commands/building/CustomBlockCommand.cs @@ -256,6 +256,7 @@ namespace MCGalaxy.Commands { if (!CheckBlockId(p, parts[1], global, out blockId)) return; BlockDefinition[] defs = global ? BlockDefinition.GlobalDefs : p.level.CustomBlockDefs; BlockDefinition def = defs[blockId]; + if (!global && def == BlockDefinition.GlobalDefs[blockId]) def = null; if (def == null) { MessageNoBlock(p, global); return; } string value = parts[3];