Add srgname to registerTileEntityWithAlternatives

This commit is contained in:
Agaricus 2013-04-14 14:11:37 -07:00
parent 0a1f3e3150
commit 76275cafc4

View file

@ -275,7 +275,7 @@ public class GameRegistry
public static void registerTileEntityWithAlternatives(Class<? extends TileEntity> tileEntityClass, String id, String... alternatives) public static void registerTileEntityWithAlternatives(Class<? extends TileEntity> tileEntityClass, String id, String... alternatives)
{ {
TileEntity.func_70306_a(tileEntityClass, id); TileEntity.func_70306_a(tileEntityClass, id);
Map<String,Class> teMappings = ObfuscationReflectionHelper.getPrivateValue(TileEntity.class, null, "field_70326_a", "a"); Map<String,Class> teMappings = ObfuscationReflectionHelper.getPrivateValue(TileEntity.class, null, "field_" + "70326_a", "field_70326_a", "a");
for (String s: alternatives) for (String s: alternatives)
{ {
if (!teMappings.containsKey(s)) if (!teMappings.containsKey(s))