From 11a9d5fe70ad49005529851a7e7e9e18ce4279ec Mon Sep 17 00:00:00 2001 From: B1G-FUNGUS Date: Fri, 1 Oct 2021 22:22:08 -0700 Subject: [PATCH] Henry why add one to target location? grug smart. grug fix and to things right way. --- src/main/java/top/penowl/quidproquo/Commands.java | 2 -- .../java/top/penowl/quidproquo/rituals/HerobrineRitual.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/top/penowl/quidproquo/Commands.java b/src/main/java/top/penowl/quidproquo/Commands.java index 06892e1..1425cad 100644 --- a/src/main/java/top/penowl/quidproquo/Commands.java +++ b/src/main/java/top/penowl/quidproquo/Commands.java @@ -4,7 +4,6 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -// import java.util.Set; import org.apache.commons.lang.WordUtils; import org.bukkit.ChatColor; @@ -13,7 +12,6 @@ import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.EntityType; -// import org.bukkit.inventory.ItemStack; public class Commands implements CommandExecutor { diff --git a/src/main/java/top/penowl/quidproquo/rituals/HerobrineRitual.java b/src/main/java/top/penowl/quidproquo/rituals/HerobrineRitual.java index 1b0a568..bfde786 100644 --- a/src/main/java/top/penowl/quidproquo/rituals/HerobrineRitual.java +++ b/src/main/java/top/penowl/quidproquo/rituals/HerobrineRitual.java @@ -34,7 +34,7 @@ public class HerobrineRitual extends Ritual { public void execute(Player caster, Player target, Location location) { Entity herobrine; Location targetLocation = target.getLocation(); - Block block = targetLocation.clone().add(0, 1, 0).getBlock(); + Block block = targetLocation.getBlock(); for (int x = -5; x <= 5; x++) { for (int z = -5; z <= 5; z++) { Material footblock = block.getRelative(x, 0, z).getType();