mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 11:36:43 +01:00
Players can no longer use their abilities in spectator mode
This commit is contained in:
parent
19f67c23c6
commit
bdedeeece4
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ public class KeyBindingsHandler {
|
||||||
changePage(client, maxPage, -1);
|
changePage(client, maxPage, -1);
|
||||||
} else if (page < maxPage && pageUp.getState() == PressedState.PRESSED) {
|
} else if (page < maxPage && pageUp.getState() == PressedState.PRESSED) {
|
||||||
changePage(client, maxPage, 1);
|
changePage(client, maxPage, 1);
|
||||||
} else {
|
} else if (!client.player.isSpectator()) {
|
||||||
for (Binding i : keys.keySet()) {
|
for (Binding i : keys.keySet()) {
|
||||||
AbilitySlot slot = keys.get(i);
|
AbilitySlot slot = keys.get(i);
|
||||||
if (slot == AbilitySlot.PRIMARY && client.options.sneakKey.isPressed() && abilities.isFilled(AbilitySlot.PASSIVE)) {
|
if (slot == AbilitySlot.PRIMARY && client.options.sneakKey.isPressed() && abilities.isFilled(AbilitySlot.PASSIVE)) {
|
||||||
|
|
Loading…
Reference in a new issue