Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-09 17:50:23 +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);
|
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);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren