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,7 +26,9 @@ public class SneakTrait extends Trait {
@Override @Override
public void onAttach() { public void onAttach() {
sneaking = NMS.isSneaking(npc.getEntity()); if (npc.isSpawned()) {
sneaking = NMS.isSneaking(npc.getEntity());
}
} }
@Override @Override