Try checking for entity spawned in sit trait

This commit is contained in:
fullwall 2024-09-29 22:56:05 +08:00
parent 75ee655487
commit 3a3f2cb9ea

View File

@ -36,7 +36,7 @@ public class SitTrait extends Trait {
return;
}
if (chair != null) {
if (chair.getEntity() != null) {
if (chair.isSpawned()) {
chair.getEntity().eject();
Location npcLoc = npc.getEntity().getLocation().clone();
if (requiresPassengerOffsetCorrection()) {