3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-03 14:50:30 +01:00

I dont even Java.

Dieser Commit ist enthalten in:
Paulomart 2016-03-03 21:24:19 +01:00
Ursprung 00df80e6fd
Commit c97b443cf2

Datei anzeigen

@ -65,7 +65,7 @@ public class ItemSlotRewriter {
tag = new CompoundTag("tag"); tag = new CompoundTag("tag");
} }
CompoundTag entityTag = new CompoundTag("EntityTag"); 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); entityTag.put(id);
tag.put(entityTag); tag.put(entityTag);
item.tag = tag; item.tag = tag;
@ -184,7 +184,7 @@ public class ItemSlotRewriter {
register(200, "EnderCrystal"); 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_ID_TO_NAME.put(id, name);
ENTTIY_NAME_TO_ID.put(name, id); ENTTIY_NAME_TO_ID.put(name, id);
} }