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
1 changed files with 2 additions and 0 deletions

View File

@ -1669,6 +1669,8 @@ public class GeyserSession implements GeyserConnection, CommandSender {
// Default stuff we have to fill in
abilities.add(Ability.BUILD);
abilities.add(Ability.MINE);
// Needed so you can drop items
abilities.add(Ability.DOORS_AND_SWITCHES);
if (gameMode == GameMode.CREATIVE) {
// Needed so the client doesn't attempt to take away items
abilities.add(Ability.INSTABUILD);