Skip to content

Commit 6771101

Browse files
Fix bug for bypassing item stacking option
1 parent a8f1223 commit 6771101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Item.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void onCommand(@NotNull Player sender, @NotNull String commandLabel, @Not
6161
plugin.text().of(sender, "blacklisted-item").send();
6262
return;
6363
}
64-
if (!plugin.isAllowStack() && !QuickShop.getPermissionManager().hasPermission(sender, "quickshop.create.stacks")) {
64+
if (!plugin.isAllowStack() || !QuickShop.getPermissionManager().hasPermission(sender, "quickshop.create.stacks")) {
6565
itemStack.setAmount(1);
6666
}
6767
SimplePriceLimiter limiter = new SimplePriceLimiter(

0 commit comments

Comments
 (0)