File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -172,8 +172,9 @@ public Path getConfigDir() {
172172 }
173173
174174 @ Override
175+ @ Deprecated (forRemoval = true )
175176 public void stackPlayerInventory (LocalPlayer localPlayer ) {
176- boolean ignoreMax = localPlayer .hasPermission ("worldguard.stack.illegitimate" );
177+ boolean ignoreMax = false ; // localPlayer.hasPermission("worldguard.stack.illegitimate");
177178
178179 Player player = ((BukkitPlayer ) localPlayer ).getPlayer ();
179180
@@ -191,7 +192,7 @@ public void stackPlayerInventory(LocalPlayer localPlayer) {
191192 continue ;
192193 }
193194
194- int max = ignoreMax ? 64 : item .getMaxStackSize ();
195+ int max = /* ignoreMax ? 64 :*/ item .getMaxStackSize ();
195196
196197 if (item .getAmount () < max ) {
197198 int needed = max - item .getAmount (); // Number of needed items until max
You can’t perform that action at this time.
0 commit comments