Skip to content

Commit

Permalink
Update PilotListener.java
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerS1066 committed Jul 1, 2024
1 parent 7a4ef47 commit 188dfd5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,15 @@ public void onCraftPilot(CraftDetectEvent event) {
if (direction == CruiseDirection.NONE) {
direction = currentDirection;
} else if (direction != currentDirection && requireCruiseSignAlignment) {
// TODO: Remove cast when maven cache is cleared
((Audience) craft.getAudience()).sendMessage(Component.text(ChatUtils.MOVECRAFT_COMMAND_PREFIX
craft.getAudience().sendMessage(Component.text(ChatUtils.MOVECRAFT_COMMAND_PREFIX
+ "Detection failed: All cruise signs must face the same way."));
event.setCancelled(true);
}
}
}

if (direction != CruiseDirection.NONE) {
// TODO: Remove cast when maven cache is cleared
if (!checkDimensions(craft.getHitBox(), direction, type, (Audience) craft.getAudience())) {
if (!checkDimensions(craft.getHitBox(), direction, type, craft.getAudience())) {
event.setCancelled(true);
return;
}
Expand Down

0 comments on commit 188dfd5

Please sign in to comment.