findBlock should now return null, not the default block, if the thing being looked for is not found. Closes #352

This commit is contained in:
Christian 2014-01-20 07:49:44 -05:00
parent 48ff8b895a
commit 8121f3fcae
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ public class GameData {
static Block findBlock(String modId, String name)
{
return (Block) blockRegistry.func_82594_a(modId + ":" + name);
String key = modId + ":" + name;
return blockRegistry.contains(key) ? blockRegistry.func_82594_a(key) : null;
}
static ItemStack findItemStack(String modId, String name)