mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix NPE in ServerEntityAnimationPacket (#1942)
Closes: https://github.com/bundabrg/GeyserReversion/issues/41 Co-authored-by: bundabrg <bundabrg@grieve.com.au>
This commit is contained in:
parent
62cbdb8f5c
commit
fc712ea892
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ public class JavaEntityAnimationTranslator extends PacketTranslator<ServerEntity
|
|||
case LEAVE_BED:
|
||||
animatePacket.setAction(AnimatePacket.Action.WAKE_UP);
|
||||
break;
|
||||
default:
|
||||
// Unknown Animation
|
||||
return;
|
||||
}
|
||||
|
||||
session.sendUpstreamPacket(animatePacket);
|
||||
|
|
Loading…
Reference in a new issue