forked from GeyserMC/Geyser
Optimize stackSize
Co-Authored-By: Camotoy <20743703+Camotoy@users.noreply.github.com>
This commit is contained in:
parent
a160e3694b
commit
57e176efd6
1 changed files with 2 additions and 1 deletions
|
@ -147,7 +147,8 @@ public class ItemRegistry {
|
|||
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(
|
||||
|
|
Loading…
Reference in a new issue