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:
@@ -94,6 +94,9 @@ public class LecternInventoryTranslator extends AbstractBlockInventoryTranslator
|
|||||||
var baseLecternTag = LecternUtils.getBaseLecternTag(position.getX(), position.getY(), position.getZ(), 0);
|
var baseLecternTag = LecternUtils.getBaseLecternTag(position.getX(), position.getY(), position.getZ(), 0);
|
||||||
BlockEntityUtils.updateBlockEntity(session, baseLecternTag.build(), position);
|
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
|
super.closeInventory(session, inventory); // Removes the fake blocks if need be
|
||||||
|
|
||||||
// Now: Restore the lectern, if it actually exists
|
// Now: Restore the lectern, if it actually exists
|
||||||
|
|||||||
Reference in New Issue
Block a user