forked from GeyserMC/Geyser
Fix piston/sticky piston (among others) not being able to be retrieved in creative
This commit is contained in:
parent
1cb2e658e0
commit
d7b8f08899
1 changed files with 7 additions and 0 deletions
|
@ -118,6 +118,13 @@ public class ItemTranslator {
|
||||||
return itemEntry;
|
return itemEntry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// If item find was unsuccessful first time, we try again while ignoring damage
|
||||||
|
// Fixes piston, sticky pistons, dispensers and droppers turning into air from creative inventory
|
||||||
|
for (ItemEntry itemEntry : Toolbox.ITEM_ENTRIES.values()) {
|
||||||
|
if (itemEntry.getBedrockId() == data.getId()) {
|
||||||
|
return itemEntry;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
GeyserConnector.getInstance().getLogger().debug("Missing mapping for bedrock item " + data.getId() + ":" + data.getDamage());
|
GeyserConnector.getInstance().getLogger().debug("Missing mapping for bedrock item " + data.getId() + ":" + data.getDamage());
|
||||||
return ItemEntry.AIR;
|
return ItemEntry.AIR;
|
||||||
|
|
Loading…
Reference in a new issue