You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/modules/AnarchyExploitFixesModule.java
Copy file name to clipboardExpand all lines: AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/modules/illegals/items/BannedMaterials.java
Copy file name to clipboardExpand all lines: AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/modules/illegals/items/OverstackedItems.java
+2-7
Original file line number
Diff line number
Diff line change
@@ -116,14 +116,9 @@ public ItemCheckResult checkItem(ItemStack itemStack) {
116
116
returnItemCheckResult.FINE;
117
117
}
118
118
119
-
if (!useWhitelist) {
120
-
if (itemStack.getAmount() > itemStack.getMaxStackSize())
119
+
if (!useWhitelist || blacklistMode == whitelistedTypes.contains(itemStack.getType())) {
120
+
if (itemStack.getAmount() > itemStack.getMaxStackSize()) {
121
121
returnItemCheckResult.IS_ILLEGAL;
122
-
} else {
123
-
if (blacklistMode == whitelistedTypes.contains(itemStack.getType())) {
124
-
if (itemStack.getAmount() > itemStack.getMaxStackSize()) {
Copy file name to clipboardExpand all lines: AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/modules/illegals/items/PlayerHeadItems.java
Copy file name to clipboardExpand all lines: AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/modules/illegals/items/SpawnEggItems.java
Copy file name to clipboardExpand all lines: AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/modules/illegals/items/UnbreakableItems.java
0 commit comments