From 7878eb599efeb790a65b9d10bd4e598058ad33ef Mon Sep 17 00:00:00 2001 From: BlayTheNinth <1933180+BlayTheNinth@users.noreply.github.com> Date: Thu, 24 Oct 2024 09:16:56 +0200 Subject: [PATCH] fix: Fixed shift-clicking to move waystone to back or front not being saved #916 --- .../waystones/network/message/SortWaystoneMessage.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/net/blay09/mods/waystones/network/message/SortWaystoneMessage.java b/common/src/main/java/net/blay09/mods/waystones/network/message/SortWaystoneMessage.java index 20ec540d..38725e6a 100644 --- a/common/src/main/java/net/blay09/mods/waystones/network/message/SortWaystoneMessage.java +++ b/common/src/main/java/net/blay09/mods/waystones/network/message/SortWaystoneMessage.java @@ -40,10 +40,10 @@ public static void handle(ServerPlayer player, SortWaystoneMessage message) { return; } - if (message.waystoneUid.equals(SORT_FIRST)) { - PlayerWaystoneManager.sortWaystoneAsFirst(player, message.otherWaystoneUid); - } else if (message.waystoneUid.equals(SORT_LAST)) { - PlayerWaystoneManager.sortWaystoneAsLast(player, message.otherWaystoneUid); + if (message.otherWaystoneUid.equals(SORT_FIRST)) { + PlayerWaystoneManager.sortWaystoneAsFirst(player, message.waystoneUid); + } else if (message.otherWaystoneUid.equals(SORT_LAST)) { + PlayerWaystoneManager.sortWaystoneAsLast(player, message.waystoneUid); } else { PlayerWaystoneManager.sortWaystoneSwap(player, message.waystoneUid, message.otherWaystoneUid); }