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

View file

@ -1688,6 +1688,8 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource {
abilities.add(Ability.MINE); abilities.add(Ability.MINE);
// Needed so you can drop items // Needed so you can drop items
abilities.add(Ability.DOORS_AND_SWITCHES); 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) { if (gameMode == GameMode.CREATIVE) {
// Needed so the client doesn't attempt to take away items // Needed so the client doesn't attempt to take away items
abilities.add(Ability.INSTABUILD); abilities.add(Ability.INSTABUILD);