Skip to content

Commit

Permalink
fix errors from gantries
Browse files Browse the repository at this point in the history
  • Loading branch information
TropheusJ committed Jul 17, 2023
1 parent 7a260c3 commit c882f8f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ public static void handlePacket(GantryContraptionUpdatePacket packet) {
if (!(entity instanceof GantryContraptionEntity))
return;
GantryContraptionEntity ce = (GantryContraptionEntity) entity;
if (ce.movementAxis == null)
return; // fabric: packet ordering makes this null for a short period
ce.axisMotion = packet.motion;
ce.clientOffsetDiff = packet.coord - ce.getAxisCoord();
ce.sequencedOffsetLimit = packet.sequenceLimit;
Expand Down

0 comments on commit c882f8f

Please sign in to comment.