mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix GameData.findBlock
This commit is contained in:
1 parent
b6664c76c5
commit
e6d8fde415
1 file changed
+2
-3
@@ -155,13 +155,12 @@ public class GameData {
|
||||
|
||||
static Item findItem(String modId, String name)
|
||||
{
|
||||
return (Item)getMain().iItemRegistry.getObject(modId + ":" + name);
|
||||
return getMain().iItemRegistry.getObject(modId + ":" + name);
|
||||
}
|
||||
|
||||
static Block findBlock(String modId, String name)
|
||||
{
|
||||
String key = modId + ":" + name;
|
||||
return getMain().iBlockRegistry.containsKey(key) ? getMain().iBlockRegistry.getObject(key) : null;
|
||||
return getMain().iBlockRegistry.getObject(modId + ":" + name);
|
||||
}
|
||||
|
||||
static UniqueIdentifier getUniqueName(Block block)
|
||||
|
||||
Reference in new issue
Block a user