Fixed spectator flight
This commit is contained in:
parent
93884ec751
commit
ba64b3190b
@ -16,7 +16,7 @@ public class FlyHack {
|
||||
private static int tickCounter = ticksToFirst;
|
||||
|
||||
public static void tick(MinecraftClient client) {
|
||||
if (client.player == null || client.world == null || client.player.isCreative())
|
||||
if (client.player == null || client.world == null || client.player.isCreative() || client.player.isSpectator())
|
||||
return;
|
||||
|
||||
client.player.getAbilities().allowFlying = options.flyHackEnabled.get();
|
||||
|
Loading…
Reference in New Issue
Block a user