Henry why add one to target location?

grug smart. grug fix and to things right way.
This commit is contained in:
B1G-FUNGUS 2021-10-01 22:22:08 -07:00
parent 54aad5b0f2
commit 11a9d5fe70
2 changed files with 1 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
// import java.util.Set;
import org.apache.commons.lang.WordUtils; import org.apache.commons.lang.WordUtils;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
@ -13,7 +12,6 @@ import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.EntityType; import org.bukkit.entity.EntityType;
// import org.bukkit.inventory.ItemStack;
public class Commands implements CommandExecutor { public class Commands implements CommandExecutor {

View File

@ -34,7 +34,7 @@ public class HerobrineRitual extends Ritual {
public void execute(Player caster, Player target, Location location) { public void execute(Player caster, Player target, Location location) {
Entity herobrine; Entity herobrine;
Location targetLocation = target.getLocation(); 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 x = -5; x <= 5; x++) {
for (int z = -5; z <= 5; z++) { for (int z = -5; z <= 5; z++) {
Material footblock = block.getRelative(x, 0, z).getType(); Material footblock = block.getRelative(x, 0, z).getType();