Fix lecterns

Huge thanks to Dylan from PocketMine for the idea here.

Fixes #3138
This commit is contained in:
Camotoy 2023-03-18 17:40:51 -04:00
parent 9609686eb3
commit a330c9a5db
No known key found for this signature in database
GPG Key ID: 7EEFB66FE798081F
1 changed files with 2 additions and 0 deletions

View File

@ -1688,6 +1688,8 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource {
abilities.add(Ability.MINE);
// Needed so you can drop items
abilities.add(Ability.DOORS_AND_SWITCHES);
// Required for lecterns to work (likely started around 1.19.10; confirmed on 1.19.70)
abilities.add(Ability.OPEN_CONTAINERS);
if (gameMode == GameMode.CREATIVE) {
// Needed so the client doesn't attempt to take away items
abilities.add(Ability.INSTABUILD);