3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-08 17:20:20 +01:00

Fix check for missing item mapping and update mappings submodule

Dieser Commit ist enthalten in:
Redned 2021-07-18 12:47:02 -05:00 committet von RednedEpic
Ursprung 697f35f657
Commit fde36a2234
2 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -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