mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-28 21:55:29 +01:00
Added missing spawned check
This commit is contained in:
parent
143e642802
commit
249fa6675d
@ -26,8 +26,10 @@ public class SneakTrait extends Trait {
|
||||
|
||||
@Override
|
||||
public void onAttach() {
|
||||
if (npc.isSpawned()) {
|
||||
sneaking = NMS.isSneaking(npc.getEntity());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSpawn() {
|
||||
|
Loading…
Reference in New Issue
Block a user