3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-07-06 07:38:03 +02:00

[1.14.4 -> 1.15] Added wolf specific health metadata (#318)

Dieser Commit ist enthalten in:
RK_01 2021-01-27 22:58:35 +01:00 committet von GitHub
Ursprung e8da5554dc
Commit 0da5b65858
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -225,6 +225,10 @@ public class EntityPackets1_15 extends EntityRewriter<Protocol1_14_4To1_15> {
}
return e.getData();
});
registerMetaHandler().filter(Entity1_15Types.EntityType.WOLF, 8).handle(e -> {
e.createMeta(new Metadata(17/*WOLF_HEALTH*/, MetaType1_14.Float, e.getData().getValue()));
return e.getData();
});
}
@Override