mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-10 21:02:36 +01:00
Fix to '/npc anchor --save name -c'
This commit is contained in:
parent
1f4b8ce43f
commit
9d8c17c376
@ -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();
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user