From 47913d8bd6cce5e8dbd916de06f197e1c8478f59 Mon Sep 17 00:00:00 2001 From: ewof Date: Mon, 29 Apr 2024 01:10:38 -0400 Subject: [PATCH] lol --- .../townywaypoints/commands/TownyWaypointsCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/mvndicraft/townywaypoints/commands/TownyWaypointsCommand.java b/src/main/java/net/mvndicraft/townywaypoints/commands/TownyWaypointsCommand.java index cf77dc8..9669d30 100644 --- a/src/main/java/net/mvndicraft/townywaypoints/commands/TownyWaypointsCommand.java +++ b/src/main/java/net/mvndicraft/townywaypoints/commands/TownyWaypointsCommand.java @@ -168,8 +168,8 @@ public static void onTravel(Player player, String townName, String waypointName, Messaging.sendMsg(player, Translatable.of("msg_waypoint_travel_warmup_cost", travelcost)); teleport(player, loc, waypoint.travelWithVehicle()); - if (TownyWaypointsSettings.getSplit() != -1 || player.getGameMode() == GameMode.SURVIVAL - || player.getGameMode() == GameMode.ADVENTURE) { + if (TownyWaypointsSettings.getSplit() != -1 && (player.getGameMode() == GameMode.SURVIVAL + || player.getGameMode() == GameMode.ADVENTURE)) { double splitCostNation = travelcost * (1.0 - TownyWaypointsSettings.getSplit()); double splitCostTown = travelcost * TownyWaypointsSettings.getSplit();