Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-28 17:10:19 +01:00
Merge pull request #347 from DoctorMacc/item-fix
Fix some creative items being unobtainable
Dieser Commit ist enthalten in:
Commit
58331993ed
@ -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;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren