Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-03 14:50:19 +01:00
Fix check for missing item mapping and update mappings submodule
Dieser Commit ist enthalten in:
Ursprung
697f35f657
Commit
fde36a2234
@ -120,6 +120,7 @@ public class ItemRegistryPopulator {
|
|||||||
|
|
||||||
// Used to get the Bedrock namespaced ID (in instances where there are small differences)
|
// Used to get the Bedrock namespaced ID (in instances where there are small differences)
|
||||||
Object2IntMap<String> bedrockIdentifierToId = new Object2IntOpenHashMap<>();
|
Object2IntMap<String> bedrockIdentifierToId = new Object2IntOpenHashMap<>();
|
||||||
|
bedrockIdentifierToId.defaultReturnValue(Short.MIN_VALUE);
|
||||||
|
|
||||||
List<String> itemNames = new ArrayList<>();
|
List<String> itemNames = new ArrayList<>();
|
||||||
|
|
||||||
@ -264,8 +265,8 @@ public class ItemRegistryPopulator {
|
|||||||
}
|
}
|
||||||
String bedrockIdentifier = mappingItem.getBedrockIdentifier();
|
String bedrockIdentifier = mappingItem.getBedrockIdentifier();
|
||||||
int bedrockId = bedrockIdentifierToId.getInt(bedrockIdentifier);
|
int bedrockId = bedrockIdentifierToId.getInt(bedrockIdentifier);
|
||||||
if (bedrockIdentifier == null) {
|
if (bedrockId == Short.MIN_VALUE) {
|
||||||
throw new RuntimeException("Missing Bedrock ID in mappings!: " + bedrockId);
|
throw new RuntimeException("Missing Bedrock ID in mappings: " + bedrockIdentifier);
|
||||||
}
|
}
|
||||||
int stackSize = mappingItem.getStackSize();
|
int stackSize = mappingItem.getStackSize();
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit c921aa9b12c2a1a471ef5f00aa040924426641dc
|
Subproject commit 8351b0f5bb6e9a1d614f84e18c91e82288c34bf6
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren