Skip to content

Commit

Permalink
Fix NPE in ServerEntityAnimationPacket (GeyserMC#1942)
Browse files Browse the repository at this point in the history
Closes: bundabrg/GeyserReversion#41

Co-authored-by: bundabrg <bundabrg@grieve.com.au>
  • Loading branch information
bundabrg and bundabrg committed Feb 17, 2021
1 parent 62cbdb8 commit fc712ea
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public void translate(ServerEntityAnimationPacket packet, GeyserSession session)
case LEAVE_BED:
animatePacket.setAction(AnimatePacket.Action.WAKE_UP);
break;
default:
// Unknown Animation
return;
}

session.sendUpstreamPacket(animatePacket);
Expand Down

0 comments on commit fc712ea

Please sign in to comment.