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