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 committed 2014-01-20 07:49:44 -05:00
1 parent 48ff8b895a
commit 8121f3fcae
1 file changed
+2 -1
@@ -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)