forked from GeyserMC/Geyser
Add entity event for drowning. (#588)
This commit translates Java's LIVING_DROWN entity status to Bedrock's HURT_ANIMATION.
This commit is contained in:
parent
fc5230c248
commit
fd36930502
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ public class JavaEntityStatusTranslator extends PacketTranslator<ServerEntitySta
|
||||||
EntityEventPacket entityEventPacket = new EntityEventPacket();
|
EntityEventPacket entityEventPacket = new EntityEventPacket();
|
||||||
entityEventPacket.setRuntimeEntityId(entity.getGeyserId());
|
entityEventPacket.setRuntimeEntityId(entity.getGeyserId());
|
||||||
switch (packet.getStatus()) {
|
switch (packet.getStatus()) {
|
||||||
|
case LIVING_DROWN:
|
||||||
|
entityEventPacket.setData(9);
|
||||||
case LIVING_HURT:
|
case LIVING_HURT:
|
||||||
case LIVING_HURT_SWEET_BERRY_BUSH:
|
case LIVING_HURT_SWEET_BERRY_BUSH:
|
||||||
entityEventPacket.setType(EntityEventType.HURT_ANIMATION);
|
entityEventPacket.setType(EntityEventType.HURT_ANIMATION);
|
||||||
|
|
Loading…
Reference in a new issue