Fix to '/npc anchor --save name -c'

This commit is contained in:
Jeremy Schroeder 2012-12-30 12:13:58 -05:00
parent 1f4b8ce43f
commit 9d8c17c376
2 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ public class CommandContext {
}
public Location getSenderTargetBlockLocation() {
if (location != null || sender == null)
if (sender == null)
return location;
if (sender instanceof Player)
location = ((Player) sender).getTargetBlock(null, 50).getLocation();

View File

@ -131,7 +131,7 @@ public class NPCCommands {
flags = "ac",
modifiers = { "anchor" },
min = 1,
max = 2,
max = 3,
permission = "npc.anchor")
@Requirements(selected = true, ownership = true, types = EntityType.PLAYER)
public void anchor(CommandContext args, CommandSender sender, NPC npc) throws CommandException {