Fixed spectator flight

This commit is contained in:
Cameron Reed 2023-02-19 18:57:33 -07:00
parent 93884ec751
commit ba64b3190b

View File

@ -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();