mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
fix gb/lb edit name showing new block name twice
This commit is contained in:
parent
8b044cc140
commit
644da4c22e
@ -305,7 +305,7 @@ namespace MCGalaxy.Commands.CPE {
|
||||
}
|
||||
if (!ExistsInScope(def, blockId, global)) { MessageNoBlock(p, blockId, global, cmd); return; }
|
||||
|
||||
string value = parts[3];
|
||||
string value = parts[3], blockName = def.Name;
|
||||
float fTemp;
|
||||
|
||||
switch (parts[2].ToLower()) {
|
||||
@ -436,7 +436,7 @@ namespace MCGalaxy.Commands.CPE {
|
||||
Player.Message(p, "Unrecognised property: " + parts[2]); return;
|
||||
}
|
||||
|
||||
Player.Message(p, "Set {0} for {1} to {2}", parts[2], def.Name, value);
|
||||
Player.Message(p, "Set {0} for {1} to {2}", parts[2], blockName, value);
|
||||
BlockDefinition.Add(def, defs, p == null ? null : p.level);
|
||||
ReloadMap(p, global);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user