mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-12-13 10:20:46 +01:00
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) {
|
if (bedrockIdentifier == null) {
|
||||||
throw new RuntimeException("Missing Bedrock ID in mappings!: " + bedrockId);
|
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_type")) {
|
||||||
if (entry.getValue().has("tool_tier")) {
|
if (entry.getValue().has("tool_tier")) {
|
||||||
ITEM_ENTRIES.put(itemIndex, new ToolItemEntry(
|
ITEM_ENTRIES.put(itemIndex, new ToolItemEntry(
|
||||||
|
|
Loading…
Reference in a new issue