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:
bundabrg 2021-02-17 13:23:55 +08:00 committed by GitHub
parent 62cbdb8f5c
commit fc712ea892
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);