Skip to content

Commit

Permalink
Optimize stackSize
Browse files Browse the repository at this point in the history
Co-Authored-By: Camotoy <[email protected]>
  • Loading branch information
AJ-Ferguson and Camotoy committed Jan 5, 2021
1 parent a160e36 commit 57e176e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ public static void init() {
if (bedrockIdentifier == null) {
throw new RuntimeException("Missing Bedrock ID in mappings!: " + bedrockId);
}
int stackSize = entry.getValue().get("stack_size") == null ? 64 : entry.getValue().get("stack_size").intValue();
JsonNode stackSizeNode = entry.getValue().get("stack_size");
int stackSize = stackSizeNode == null ? 64 : stackSizeNode.intValue();
if (entry.getValue().has("tool_type")) {
if (entry.getValue().has("tool_tier")) {
ITEM_ENTRIES.put(itemIndex, new ToolItemEntry(
Expand Down

0 comments on commit 57e176e

Please sign in to comment.