mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Quietly handle unmappable Java items
If vanilla can handle them, so can we.
This commit is contained in:
parent
93726f5818
commit
7e773c9970
1 changed files with 5 additions and 1 deletions
|
@ -125,8 +125,12 @@ public abstract class ItemTranslator {
|
|||
}
|
||||
|
||||
ItemEntry bedrockItem = ItemRegistry.getItem(stack);
|
||||
if (bedrockItem == null) {
|
||||
session.getConnector().getLogger().debug("No matching ItemEntry for " + stack);
|
||||
return ItemData.AIR;
|
||||
}
|
||||
|
||||
com.github.steveice10.opennbt.tag.builtin.CompoundTag nbt = stack.getNbt() != null ? stack.getNbt().clone() : null;
|
||||
CompoundTag nbt = stack.getNbt() != null ? stack.getNbt().clone() : null;
|
||||
|
||||
// This is a fallback for maps with no nbt
|
||||
if (nbt == null && bedrockItem.getJavaIdentifier().equals("minecraft:filled_map")) {
|
||||
|
|
Loading…
Reference in a new issue