From 2cd0378306666ef97c67938f2650f9418a8449db Mon Sep 17 00:00:00 2001 From: TheBusyBiscuit Date: Tue, 22 Dec 2020 15:53:00 +0100 Subject: [PATCH] Thank god we have Unit Tests :monkaS: --- .../slimefun4/core/categories/LockedCategory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/core/categories/LockedCategory.java b/src/main/java/io/github/thebusybiscuit/slimefun4/core/categories/LockedCategory.java index f85b8b362..abf17e55d 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/core/categories/LockedCategory.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/core/categories/LockedCategory.java @@ -157,7 +157,7 @@ public class LockedCategory extends Category { for (Category category : parents) { for (SlimefunItem item : category.getItems()) { - if (item.canUse(p, false)) { + if (!item.canUse(p, false)) { return false; } }