mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix lecterns
Huge thanks to Dylan from PocketMine for the idea here. Fixes #3138
This commit is contained in:
parent
9609686eb3
commit
a330c9a5db
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue