Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-10-05 09:20:07 +02:00
fix logs and fences in 1.19.80+ (#3698)
Dieser Commit ist enthalten in:
Ursprung
56958f8fbd
Commit
321f98c75d
@ -213,6 +213,18 @@ public class ItemRegistryPopulator {
|
|||||||
} else {
|
} else {
|
||||||
bedrockIdentifier = mappingItem.getBedrockIdentifier();
|
bedrockIdentifier = mappingItem.getBedrockIdentifier();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//1.19.80+
|
||||||
|
if (palette.getValue().protocolVersion >= Bedrock_v582.CODEC.getProtocolVersion()) {
|
||||||
|
if (mappingItem.getBedrockIdentifier().equals("minecraft:log") ||
|
||||||
|
mappingItem.getBedrockIdentifier().equals("minecraft:log2") ||
|
||||||
|
mappingItem.getBedrockIdentifier().equals("minecraft:fence")) {
|
||||||
|
bedrockIdentifier = javaItem.javaIdentifier();
|
||||||
|
} else {
|
||||||
|
bedrockIdentifier = mappingItem.getBedrockIdentifier();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ItemDefinition definition = definitions.get(bedrockIdentifier);
|
ItemDefinition definition = definitions.get(bedrockIdentifier);
|
||||||
if (definition == null) {
|
if (definition == null) {
|
||||||
throw new RuntimeException("Missing Bedrock ItemDefinition in mappings: " + bedrockIdentifier);
|
throw new RuntimeException("Missing Bedrock ItemDefinition in mappings: " + bedrockIdentifier);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren