rename variable and add comment

This commit is contained in:
YHDiamond 2024-07-08 22:56:23 -04:00
parent 634c0976fe
commit f1b91b9546

View file

@ -59,17 +59,20 @@ public final class ClickPlan {
private final InventoryTranslator translator; private final InventoryTranslator translator;
private final Inventory inventory; private final Inventory inventory;
private final int gridSize; 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) { public ClickPlan(GeyserSession session, InventoryTranslator translator, Inventory inventory) {
this(session, translator, inventory, false); 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.session = session;
this.translator = translator; this.translator = translator;
this.inventory = inventory; this.inventory = inventory;
this.handleBookRecipe = handleBookRecipe; this.cloneBookRecipe = cloneBookRecipe;
this.simulatedItems = new Int2ObjectOpenHashMap<>(inventory.getSize()); this.simulatedItems = new Int2ObjectOpenHashMap<>(inventory.getSize());
this.changedItems = null; this.changedItems = null;