Null check

This commit is contained in:
AJ Ferguson 2024-04-24 05:55:39 -04:00
parent 7838ca1fba
commit 3d21fec2b2
1 changed files with 4 additions and 0 deletions

View File

@ -178,6 +178,10 @@ public class BoatEntity extends Entity implements Tickable {
}
Entity rower = passengers.get(0);
if (rower == null) {
return;
}
if (isPaddlingLeft) {
paddleTimeLeft += ROWING_SPEED;
sendAnimationPacket(session, rower, AnimatePacket.Action.ROW_LEFT, paddleTimeLeft);