mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01:00
I dont even Java.
This commit is contained in:
parent
00df80e6fd
commit
c97b443cf2
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user