Skip to content
Browse files

Fix GetBlockName not returning custom block name, if replaced core bl…

  • Loading branch information...
UnknownShadow200 committed Aug 12, 2017
1 parent f97ab94 commit 04583fa47787109e6a7ee6a54024b80147c18cef
Showing with 1 addition and 1 deletion.
  1. +1 −1 fCraft/World/Map.cs
@@ -361,7 +361,7 @@ public bool SetBlockNoNeighborChange(int x, int y, int z, Block newBlock)
public static string GetBlockName(World world, Block block) {
Block outBlock;
if (GetBlockByName(world, block.ToString(), false, out outBlock)) {
if (outBlock > MaxCustomBlockType) {
if (world.BlockDefs[(byte)outBlock] != null) {
return world.BlockDefs[(int)outBlock].Name;
return outBlock.ToString();

0 comments on commit 04583fa

Please sign in to comment.
You can’t perform that action at this time.