diff --git a/src/main/java/net/countercraft/movecraft/rules/PilotListener.java b/src/main/java/net/countercraft/movecraft/rules/PilotListener.java index f2a3abe..974f7fc 100644 --- a/src/main/java/net/countercraft/movecraft/rules/PilotListener.java +++ b/src/main/java/net/countercraft/movecraft/rules/PilotListener.java @@ -85,7 +85,8 @@ public void onCraftPilot(CraftDetectEvent event) { if (direction == CruiseDirection.NONE) { direction = currentDirection; } else if (direction != currentDirection && requireCruiseSignAlignment) { - craft.getAudience().sendMessage(Component.text(ChatUtils.MOVECRAFT_COMMAND_PREFIX + // TODO: Remove cast when maven cache is cleared + ((Audience) craft.getAudience()).sendMessage(Component.text(ChatUtils.MOVECRAFT_COMMAND_PREFIX + "Detection failed: All cruise signs must face the same way.")); event.setCancelled(true); } @@ -93,7 +94,8 @@ public void onCraftPilot(CraftDetectEvent event) { } if (direction != CruiseDirection.NONE) { - if (!checkDimensions(craft.getHitBox(), direction, type, craft.getAudience())) { + // TODO: Remove cast when maven cache is cleared + if (!checkDimensions(craft.getHitBox(), direction, type, (Audience) craft.getAudience())) { event.setCancelled(true); return; }