mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Merge pull request #2174 from diesieben07/findBlockFix
Fix GameData.findBlock
This commit is contained in:
commit
95b30f5153
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