I dont even Java.

This commit is contained in:
Paulomart 2016-03-03 21:24:19 +01:00
parent 00df80e6fd
commit c97b443cf2

View File

@ -65,7 +65,7 @@ public class ItemSlotRewriter {
tag = new CompoundTag("tag");
}
CompoundTag entityTag = new CompoundTag("EntityTag");
StringTag id = new StringTag("id", ENTTIY_ID_TO_NAME.get(item.data));
StringTag id = new StringTag("id", ENTTIY_ID_TO_NAME.get(Integer.valueOf(item.data)));
entityTag.put(id);
tag.put(entityTag);
item.tag = tag;
@ -184,7 +184,7 @@ public class ItemSlotRewriter {
register(200, "EnderCrystal");
}
private static void register(int id, String name) {
private static void register(Integer id, String name) {
ENTTIY_ID_TO_NAME.put(id, name);
ENTTIY_NAME_TO_ID.put(name, id);
}