Fix: Opening inventory menus in spectator mode (#4407)

Revert to spectator_viewer instead of the native Bedrock spectator menu. While it looks uglier - e.g. it's showing health/hunger bars; it allows opening menus. It'll also be needed for entity spectating, since clicking on things isnt possible in bedrocks spectator mode
This commit is contained in:
chris 2024-01-23 00:34:53 +01:00 committed by GitHub
parent 87779dca88
commit 7bcecdf403
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -270,7 +270,7 @@ public final class EntityUtils {
return switch (gamemode) {
case CREATIVE -> GameType.CREATIVE;
case ADVENTURE -> GameType.ADVENTURE;
case SPECTATOR -> GameType.SPECTATOR;
case SPECTATOR -> GameType.SURVIVAL_VIEWER;
default -> GameType.SURVIVAL;
};
}