mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-02 07:33:44 +01:00
Fix /npc collidable, don't add a navigation listener for the player
This commit is contained in:
parent
e4a03b896d
commit
c557bbfeed
@ -256,8 +256,8 @@ public class NPCCommands {
|
|||||||
@Command(
|
@Command(
|
||||||
aliases = { "npc" },
|
aliases = { "npc" },
|
||||||
usage = "collidable",
|
usage = "collidable",
|
||||||
desc = "Copies an NPC",
|
desc = "Toggles an NPC's collidability",
|
||||||
modifiers = { "copy" },
|
modifiers = { "collidable" },
|
||||||
min = 1,
|
min = 1,
|
||||||
max = 1,
|
max = 1,
|
||||||
permission = "citizens.npc.collidable")
|
permission = "citizens.npc.collidable")
|
||||||
|
@ -48,7 +48,6 @@ public class PlayerNavigation extends NavigationAbstract {
|
|||||||
this.e = new PlayerPathfinderNormal();
|
this.e = new PlayerPathfinderNormal();
|
||||||
this.e.a(true);
|
this.e.a(true);
|
||||||
this.s = new PlayerPathfinder(this.e);
|
this.s = new PlayerPathfinder(this.e);
|
||||||
this.b.C().a(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user