From 1a0dce328a377fb7c1636e02070f839dbfd9a992 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 28 Jul 2024 08:34:00 +1000 Subject: [PATCH] #1456: Fix inverted logic in CraftCrafterView#setSlotDisabled By: Miles Holder --- .../org/bukkit/craftbukkit/inventory/view/CraftCrafterView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/view/CraftCrafterView.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/view/CraftCrafterView.java index d3fca1831a..720a57e5ce 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/view/CraftCrafterView.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/view/CraftCrafterView.java @@ -27,6 +27,6 @@ public class CraftCrafterView extends CraftInventoryView implements public void setSlotDisabled(final int slot, final boolean disabled) { Preconditions.checkArgument(slot >= 0 && slot < 9, "Invalid slot index %s for Crafter", slot); - container.setSlotState(slot, disabled); + container.setSlotState(slot, !disabled); } }