mirror of https://github.com/GeyserMC/Geyser.git
Null check
This commit is contained in:
parent
7838ca1fba
commit
3d21fec2b2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue