mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix check for missing item mapping and update mappings submodule
This commit is contained in:
parent
697f35f657
commit
fde36a2234
2 changed files with 4 additions and 3 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue