From a4972b34e202c604fc3a2f0cec630d8f17c050c4 Mon Sep 17 00:00:00 2001 From: justin393 Date: Wed, 1 Apr 2015 21:58:01 -0400 Subject: [PATCH] Fixed one of the issue requests where Herobrine wouldn't look at a player while haunting them --- src/org/jakub1221/herobrineai/commands/CmdExecutor.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/jakub1221/herobrineai/commands/CmdExecutor.java b/src/org/jakub1221/herobrineai/commands/CmdExecutor.java index 00c70b0..d78ece9 100644 --- a/src/org/jakub1221/herobrineai/commands/CmdExecutor.java +++ b/src/org/jakub1221/herobrineai/commands/CmdExecutor.java @@ -428,6 +428,9 @@ public class CmdExecutor implements CommandExecutor { Bukkit.getServer() .getPlayer( args[1])); + String pname = args[1]; + Player target = Bukkit.getPlayer(pname); + P_Core.herobrineNPC.lookAtPoint(target.getLocation()); player.sendMessage(ChatColor.RED + "[Herobrine] Herobrine is now haunting " + args[1] + ".");