From f1b91b954606d42d2827379e5543eda28968bdd4 Mon Sep 17 00:00:00 2001 From: YHDiamond Date: Mon, 8 Jul 2024 22:56:23 -0400 Subject: [PATCH] rename variable and add comment --- .../org/geysermc/geyser/inventory/click/ClickPlan.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/geysermc/geyser/inventory/click/ClickPlan.java b/core/src/main/java/org/geysermc/geyser/inventory/click/ClickPlan.java index 953b6cedc..c43bf7b16 100644 --- a/core/src/main/java/org/geysermc/geyser/inventory/click/ClickPlan.java +++ b/core/src/main/java/org/geysermc/geyser/inventory/click/ClickPlan.java @@ -59,17 +59,20 @@ public final class ClickPlan { private final InventoryTranslator translator; private final Inventory inventory; private final int gridSize; - private final boolean handleBookRecipe; + /** + * The recipe for cloning books requires special handling, this dictates whether that handling should be performed + */ + private final boolean cloneBookRecipe; public ClickPlan(GeyserSession session, InventoryTranslator translator, Inventory inventory) { this(session, translator, inventory, false); } - public ClickPlan(GeyserSession session, InventoryTranslator translator, Inventory inventory, boolean handleBookRecipe) { + public ClickPlan(GeyserSession session, InventoryTranslator translator, Inventory inventory, boolean cloneBookRecipe) { this.session = session; this.translator = translator; this.inventory = inventory; - this.handleBookRecipe = handleBookRecipe; + this.cloneBookRecipe = cloneBookRecipe; this.simulatedItems = new Int2ObjectOpenHashMap<>(inventory.getSize()); this.changedItems = null;