From 82296cd221558ed87ec0920ece6276b93348da62 Mon Sep 17 00:00:00 2001 From: Daniel E Date: Tue, 19 Nov 2019 15:24:53 -0700 Subject: [PATCH] Updated HandSwapContext Members better reflect what they're for. --- .../module/combat/ObsidianReplaceModule.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/me/rigamortis/seppuku/impl/module/combat/ObsidianReplaceModule.java b/src/main/java/me/rigamortis/seppuku/impl/module/combat/ObsidianReplaceModule.java index 0045462..eecce17 100644 --- a/src/main/java/me/rigamortis/seppuku/impl/module/combat/ObsidianReplaceModule.java +++ b/src/main/java/me/rigamortis/seppuku/impl/module/combat/ObsidianReplaceModule.java @@ -228,25 +228,25 @@ public final class ObsidianReplaceModule extends Module { } private void processHandSwap(final HandSwapContext context, final boolean restore, final Minecraft minecraft) { - minecraft.player.inventory.currentItem = restore ? context.getGameSlot() : context.getObsidianSlot(); + minecraft.player.inventory.currentItem = restore ? context.getOldSlot() : context.getNewSlot(); minecraft.playerController.updateController(); } private static final class HandSwapContext { - private final int gameSlot; - private final int obsidianSlot; + private final int oldSlot; + private final int newSlot; - HandSwapContext(int gameSlot, int obsidianSlot) { - this.gameSlot = gameSlot; - this.obsidianSlot = obsidianSlot; + HandSwapContext(int oldSlot, int newSlot) { + this.oldSlot = oldSlot; + this.newSlot = newSlot; } - int getGameSlot() { - return gameSlot; + int getOldSlot() { + return oldSlot; } - int getObsidianSlot() { - return obsidianSlot; + int getNewSlot() { + return newSlot; } }