Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-09-17 00:33:47 +02:00
Remove unnecessary is_block null check
Dieser Commit ist enthalten in:
Ursprung
57e176efd6
Commit
ff69752d2c
@ -156,7 +156,7 @@ public class ItemRegistry {
|
|||||||
entry.getValue().get("bedrock_data").intValue(),
|
entry.getValue().get("bedrock_data").intValue(),
|
||||||
entry.getValue().get("tool_type").textValue(),
|
entry.getValue().get("tool_type").textValue(),
|
||||||
entry.getValue().get("tool_tier").textValue(),
|
entry.getValue().get("tool_tier").textValue(),
|
||||||
entry.getValue().get("is_block") != null && entry.getValue().get("is_block").booleanValue(),
|
entry.getValue().get("is_block").booleanValue(),
|
||||||
stackSize));
|
stackSize));
|
||||||
} else {
|
} else {
|
||||||
ITEM_ENTRIES.put(itemIndex, new ToolItemEntry(
|
ITEM_ENTRIES.put(itemIndex, new ToolItemEntry(
|
||||||
@ -170,7 +170,7 @@ public class ItemRegistry {
|
|||||||
ITEM_ENTRIES.put(itemIndex, new ItemEntry(
|
ITEM_ENTRIES.put(itemIndex, new ItemEntry(
|
||||||
entry.getKey(), bedrockIdentifier, itemIndex, bedrockId,
|
entry.getKey(), bedrockIdentifier, itemIndex, bedrockId,
|
||||||
entry.getValue().get("bedrock_data").intValue(),
|
entry.getValue().get("bedrock_data").intValue(),
|
||||||
entry.getValue().get("is_block") != null && entry.getValue().get("is_block").booleanValue(),
|
entry.getValue().get("is_block").booleanValue(),
|
||||||
stackSize));
|
stackSize));
|
||||||
}
|
}
|
||||||
switch (entry.getKey()) {
|
switch (entry.getKey()) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren