From 548adbd00a0a1d726e09a437b7dfa164f0745104 Mon Sep 17 00:00:00 2001 From: Wilhelm Schuster Date: Fri, 22 Nov 2024 09:47:43 +0100 Subject: [PATCH] Fix typo in method name "previousSlot" --- .../client/keybinding/KeyInputHandler.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/brandon3055/draconicevolution/client/keybinding/KeyInputHandler.java b/src/main/java/com/brandon3055/draconicevolution/client/keybinding/KeyInputHandler.java index e7c24977..d56633b7 100644 --- a/src/main/java/com/brandon3055/draconicevolution/client/keybinding/KeyInputHandler.java +++ b/src/main/java/com/brandon3055/draconicevolution/client/keybinding/KeyInputHandler.java @@ -75,15 +75,15 @@ public class KeyInputHandler { if (change == 0 || !player.isSneaking()) return; if (change > 0) { - ItemStack item = player.inventory.getStackInSlot(previouseSlot(1, player.inventory.currentItem)); + ItemStack item = player.inventory.getStackInSlot(previousSlot(1, player.inventory.currentItem)); if (item != null && Objects.equals(item.getItem(), ModItems.teleporterMKII)) { - player.inventory.currentItem = previouseSlot(1, player.inventory.currentItem); + player.inventory.currentItem = previousSlot(1, player.inventory.currentItem); DraconicEvolution.network.sendToServer(new TeleporterPacket(TeleporterPacket.SCROLL, -1, false)); } } else { - ItemStack item = player.inventory.getStackInSlot(previouseSlot(-1, player.inventory.currentItem)); + ItemStack item = player.inventory.getStackInSlot(previousSlot(-1, player.inventory.currentItem)); if (item != null && Objects.equals(item.getItem(), ModItems.teleporterMKII)) { - player.inventory.currentItem = previouseSlot(-1, player.inventory.currentItem); + player.inventory.currentItem = previousSlot(-1, player.inventory.currentItem); DraconicEvolution.network.sendToServer(new TeleporterPacket(TeleporterPacket.SCROLL, 1, false)); } } @@ -139,7 +139,7 @@ public class KeyInputHandler { } } - private int previouseSlot(int i, int c) { + private int previousSlot(int i, int c) { if (c > 0 && c < 8) return c + i; if (c == 0 && i < 0) return 8; if (c == 8 && i > 0) return 0;