Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 16:12:42 +01:00
I dont even Java.
Dieser Commit ist enthalten in:
Ursprung
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);
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren