3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-08 17:20:24 +01:00

18w08b trying entity rewrite^2

Dieser Commit ist enthalten in:
creeper123123321 2018-02-24 06:28:36 -03:00
Ursprung 909bbc43d0
Commit 6498c010f8

Datei anzeigen

@ -37,6 +37,8 @@ public class EntityPackets {
Entity1_12Types.getTypeFromId(type, true).name() Entity1_12Types.getTypeFromId(type, true).name()
); );
wrapper.set(Type.BYTE, 0, (byte) entType.getId());
// Register Type ID // Register Type ID
wrapper.user().get(EntityTracker.class).addEntity(entityId, entType); wrapper.user().get(EntityTracker.class).addEntity(entityId, entType);
} }
@ -71,6 +73,9 @@ public class EntityPackets {
Entity1_13Types.EntityType entType = Entity1_13Types.EntityType.valueOf( Entity1_13Types.EntityType entType = Entity1_13Types.EntityType.valueOf(
Entity1_12Types.getTypeFromId(type, false).name() Entity1_12Types.getTypeFromId(type, false).name()
); );
wrapper.set(Type.VAR_INT, 1, type = entType.getId());
// Register Type ID // Register Type ID
wrapper.user().get(EntityTracker.class).addEntity(entityId, entType); wrapper.user().get(EntityTracker.class).addEntity(entityId, entType);