Skip to content

Commit 47f33a5

Browse files
committed
uppercase
1 parent 62d442b commit 47f33a5

File tree

1 file changed

+3
-3
lines changed
  • src/main/java/org/maxgamer/quickshop/util

1 file changed

+3
-3
lines changed

src/main/java/org/maxgamer/quickshop/util/Util.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)