3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-26 16:12:42 +01:00
Dieser Commit ist enthalten in:
KennyTV 2019-10-02 15:14:03 +02:00
Ursprung 655ef137c1
Commit 3adffdc438

Datei anzeigen

@ -138,12 +138,7 @@ public abstract class MetadataRewriter<T extends Protocol> extends Rewriter<T> {
int entityId = wrapper.get(Type.VAR_INT, 0);
byte type = wrapper.get(Type.BYTE, 0);
int newType = getNewEntityId(type);
if (newType != type) {
wrapper.set(Type.BYTE, 0, (byte) newType);
}
EntityType entType = getObjectTypeFromId(newType);
EntityType entType = getObjectTypeFromId(type);
// Register Type ID
wrapper.user().get(entityTrackerClass).addEntity(entityId, entType);
}