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:
parent
48ff8b895a
commit
8121f3fcae
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue