Fix dropping items in 1.19.10

This commit is contained in:
Camotoy 2022-07-12 16:05:06 -04:00
parent 16bb79e7aa
commit 109e1c0a97
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F

View file

@ -1669,6 +1669,8 @@ public class GeyserSession implements GeyserConnection, CommandSender {
// Default stuff we have to fill in // Default stuff we have to fill in
abilities.add(Ability.BUILD); abilities.add(Ability.BUILD);
abilities.add(Ability.MINE); abilities.add(Ability.MINE);
// Needed so you can drop items
abilities.add(Ability.DOORS_AND_SWITCHES);
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);