File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/maxgamer/quickshop/util Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public class Util {
8585 private static final ReentrantReadWriteLock LOCK = new ReentrantReadWriteLock ();
8686
8787 private static final ThreadLocal <MineDown > MINEDOWN = ThreadLocal .withInitial (() -> new MineDown ("" ));
88- private static int bypassedCustomStackSize = -1 ;
88+ private static int BYPASSED_CUSTOM_STACKSIZE = -1 ;
8989 private static Yaml yaml = null ;
9090 private static Boolean devMode = null ;
9191 @ Setter
@@ -244,7 +244,7 @@ public static int countSpace(@Nullable Inventory inv, @NotNull ItemStack item) {
244244 * @return Game StackSize or Custom
245245 */
246246 public static int getItemMaxStackSize (@ NotNull Material material ) {
247- return CUSTOM_STACKSIZE .getOrDefault (material , bypassedCustomStackSize == -1 ? material .getMaxStackSize () : bypassedCustomStackSize );
247+ return CUSTOM_STACKSIZE .getOrDefault (material , BYPASSED_CUSTOM_STACKSIZE == -1 ? material .getMaxStackSize () : BYPASSED_CUSTOM_STACKSIZE );
248248 }
249249
250250 /**
@@ -599,7 +599,7 @@ public static void initialize() {
599599 }
600600
601601 if ("*" .equalsIgnoreCase (data [0 ])) {
602- bypassedCustomStackSize = Integer .parseInt (data [1 ]);
602+ BYPASSED_CUSTOM_STACKSIZE = Integer .parseInt (data [1 ]);
603603 }
604604 Material mat = Material .matchMaterial (data [0 ]);
605605 if (mat == null || mat == Material .AIR ) {
You can’t perform that action at this time.
0 commit comments