From 7865f8ad85fccf3c337b1861643c789c365baf60 Mon Sep 17 00:00:00 2001 From: Henry Boles Date: Sun, 10 Oct 2021 23:20:38 -0700 Subject: [PATCH] Fix woosh ritual pt 3 --- src/main/java/top/penowl/quidproquo/rituals/WooshRitual.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/top/penowl/quidproquo/rituals/WooshRitual.java b/src/main/java/top/penowl/quidproquo/rituals/WooshRitual.java index 097d2e5..c177a21 100644 --- a/src/main/java/top/penowl/quidproquo/rituals/WooshRitual.java +++ b/src/main/java/top/penowl/quidproquo/rituals/WooshRitual.java @@ -23,7 +23,7 @@ public class WooshRitual extends Ritual { @Override public void execute(Player caster, Player target, Location location) { int y = 255; - while (location.getBlock().getRelative(0, y, 0).getType() != Material.AIR) { + while (location.getBlock().getRelative(0, y, 0).getType() == Material.AIR) { y--; } caster.teleport(location.getBlock().getRelative(0, y + 1, 0).getLocation());