Ensure valid vehicle status

This commit is contained in:
Nassim Jahnke 2021-09-28 09:47:47 +02:00
parent 83a6307788
commit 457b4033ab

View file

@ -351,7 +351,7 @@
+ }
+ }
+
+ if (persistVehicle && entity1 != null && entity != this && entity.hasExactlyOnePlayerPassenger()) {
+ if (persistVehicle && entity1 != null && entity != this && entity.hasExactlyOnePlayerPassenger() && !entity.isRemoved()) { // Paper - Ensure valid vehicle status
+ // CraftBukkit end
CompoundTag nbttagcompound1 = new CompoundTag();
CompoundTag nbttagcompound2 = new CompoundTag();