mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-29 12:37:37 +01:00
Fix to '/npc anchor --save name -c'
This commit is contained in:
parent
094d2a2084
commit
5b3a24411c
@ -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