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 6d30964c75
commit 8149d1cfff

View File

@ -152,7 +152,7 @@ public class NPCCommands {
throw new ServerCommandException(); throw new ServerCommandException();
if (args.hasFlag('c')) { 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); Messaging.sendTr(sender, Messages.ANCHOR_ADDED);
} else } else
throw new CommandException(Messages.ANCHOR_ALREADY_EXISTS, args.getFlag("save")); throw new CommandException(Messages.ANCHOR_ALREADY_EXISTS, args.getFlag("save"));