3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-07 16:50:14 +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); int entityId = wrapper.get(Type.VAR_INT, 0);
byte type = wrapper.get(Type.BYTE, 0); byte type = wrapper.get(Type.BYTE, 0);
int newType = getNewEntityId(type); EntityType entType = getObjectTypeFromId(type);
if (newType != type) {
wrapper.set(Type.BYTE, 0, (byte) newType);
}
EntityType entType = getObjectTypeFromId(newType);
// Register Type ID // Register Type ID
wrapper.user().get(entityTrackerClass).addEntity(entityId, entType); wrapper.user().get(entityTrackerClass).addEntity(entityId, entType);
} }