Added missing spawned check

This commit is contained in:
fullwall 2024-03-04 02:33:31 +08:00
parent 143e642802
commit 249fa6675d

View File

@ -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() {