Fix stack overflow error

This commit is contained in:
filoghost 2021-07-01 22:55:44 +02:00
parent b594f79a2b
commit b8dde1ab3e

View File

@ -230,7 +230,7 @@ public class EntityNMSArmorStand extends EntityArmorStand implements NMSArmorSta
try {
VEHICLE_FIELD.set(passenger, this);
((Entity) this).at /* passengers */ = ImmutableList.of(this);
((Entity) this).at /* passengers */ = ImmutableList.of(passengerEntity);
} catch (ReflectiveOperationException e) {
DebugLogger.cannotSetPassenger(e);
}