Don't add 1 to y-axis when using -c modifier for /npc anchor.

This commit is contained in:
Jeremy Schroeder 2013-10-15 21:07:59 -04:00
parent ce7b7a77e4
commit 150eab01ad
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ public class NPCCommands {
throw new ServerCommandException();
if (args.hasFlag('c')) {
if (trait.addAnchor(args.getFlag("save"), args.getSenderTargetBlockLocation().add(0,1,0))) {
if (trait.addAnchor(args.getFlag("save"), args.getSenderTargetBlockLocation())) {
Messaging.sendTr(sender, Messages.ANCHOR_ADDED);
} else
throw new CommandException(Messages.ANCHOR_ALREADY_EXISTS, args.getFlag("save"));