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