We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f97ab94 commit 04583faCopy full SHA for 04583fa
fCraft/World/Map.cs
@@ -361,7 +361,7 @@ public Block GetBlock( Vector3I coords ) {
361
public static string GetBlockName(World world, Block block) {
362
Block outBlock;
363
if (GetBlockByName(world, block.ToString(), false, out outBlock)) {
364
- if (outBlock > MaxCustomBlockType) {
+ if (world.BlockDefs[(byte)outBlock] != null) {
365
return world.BlockDefs[(int)outBlock].Name;
366
}
367
return outBlock.ToString();
0 commit comments