1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-23 16:59:33 +00:00

Fix: Lecterns locking up container opening

closes https://github.com/GeyserMC/Geyser/issues/5456
This commit is contained in:
onebeastchris
2025-04-02 23:12:02 +02:00
parent c6101d71db
commit c47264d126

View File

@@ -94,6 +94,9 @@ public class LecternInventoryTranslator extends AbstractBlockInventoryTranslator
var baseLecternTag = LecternUtils.getBaseLecternTag(position.getX(), position.getY(), position.getZ(), 0);
BlockEntityUtils.updateBlockEntity(session, baseLecternTag.build(), position);
// Closing lecterns isn't followed up by a ContainerClosePacket, so this wouldn't ever be reset.
session.setPendingOrCurrentBedrockInventoryId(-1);
super.closeInventory(session, inventory); // Removes the fake blocks if need be
// Now: Restore the lectern, if it actually exists