mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 08:44:25 +00:00
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:
1 parent
3d26f28bcf
commit
a62374d4ac
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)
|
||||
|
||||
Reference in new issue
Block a user