mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-30 22:53:24 +01:00
Test fix for pathing
This commit is contained in:
parent
d08c1dc623
commit
5b9cf50b8e
@ -632,11 +632,11 @@ public class NPCCommands {
|
||||
flags = "t",
|
||||
permission = "npc.vulnerable")
|
||||
public void vulnerable(CommandContext args, CommandSender sender, NPC npc) {
|
||||
boolean vulnerable = !npc.data().get(NPC.DEFAULT_PROTECTED_METADATA, true);
|
||||
boolean vulnerable = npc.data().get(NPC.DEFAULT_PROTECTED_METADATA, true);
|
||||
if (args.hasFlag('t'))
|
||||
npc.data().set(NPC.DEFAULT_PROTECTED_METADATA, vulnerable);
|
||||
npc.data().set(NPC.DEFAULT_PROTECTED_METADATA, !vulnerable);
|
||||
else
|
||||
npc.data().setPersistent(NPC.DEFAULT_PROTECTED_METADATA, vulnerable);
|
||||
npc.data().setPersistent(NPC.DEFAULT_PROTECTED_METADATA, !vulnerable);
|
||||
|
||||
Messaging.sendF(sender, ChatColor.GREEN + "%s is %s vulnerable.", StringHelper.wrap(npc.getName()),
|
||||
vulnerable ? "now" : "no longer");
|
||||
|
@ -222,7 +222,6 @@ public class LinearWaypointProvider implements WaypointProvider {
|
||||
public void onNavigationComplete(NavigationCompleteEvent event) {
|
||||
if (currentDestination == null || !event.getNavigator().equals(getNavigator()))
|
||||
return;
|
||||
if (currentDestination.equals(event.getNavigator().getTargetAsLocation()))
|
||||
selector.finish();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user