Fix potential CME closing viewers without access

Closes #33
This commit is contained in:
Jikoo
2021-06-24 08:21:26 -04:00
parent b198931f30
commit 4336b454b7
2 changed files with 18 additions and 26 deletions

View File

@@ -336,10 +336,6 @@ public class AnySilentContainer implements IAnySilentContainer {
try {
this.playerInteractManagerGamemode.setAccessible(true);
this.playerInteractManagerGamemode.set(player.d, gameMode);
// TODO: may need additional calls to update abilities to prevent container sound + animation
// gameMode.a(player.getAbilities());
// player.updateAbilities();
// should be the fix if it doesn't work as-is
} catch (IllegalArgumentException | IllegalAccessException e) {
e.printStackTrace();
}