Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 22:40:18 +01:00
Merge remote-tracking branch 'upstream/master' into feature/blocky
Dieser Commit ist enthalten in:
Commit
77d991961c
@ -52,6 +52,11 @@ public class ShulkerBoxItemTranslator extends NbtItemStackTranslator {
|
|||||||
|
|
||||||
ItemMapping boxMapping = session.getItemMappings().getMapping(Identifier.formalize(((StringTag) itemData.get("id")).getValue()));
|
ItemMapping boxMapping = session.getItemMappings().getMapping(Identifier.formalize(((StringTag) itemData.get("id")).getValue()));
|
||||||
|
|
||||||
|
if (boxMapping == null) {
|
||||||
|
// If invalid ID
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
boxItemTag.put(new StringTag("Name", boxMapping.getBedrockIdentifier()));
|
boxItemTag.put(new StringTag("Name", boxMapping.getBedrockIdentifier()));
|
||||||
boxItemTag.put(new ShortTag("Damage", (short) boxMapping.getBedrockData()));
|
boxItemTag.put(new ShortTag("Damage", (short) boxMapping.getBedrockData()));
|
||||||
boxItemTag.put(new ByteTag("Count", MathUtils.getNbtByte(itemData.get("Count").getValue())));
|
boxItemTag.put(new ByteTag("Count", MathUtils.getNbtByte(itemData.get("Count").getValue())));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren