mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 19:16:34 +01:00
Don't add 1 to y-axis when using -c modifier for /npc anchor.
This commit is contained in:
parent
6d30964c75
commit
8149d1cfff
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user