mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-10-22 12:29:59 +02:00
Try checking for entity spawned in sit trait
This commit is contained in:
parent
75ee655487
commit
3a3f2cb9ea
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user