Fix recursive passenger

This commit is contained in:
filoghost 2021-03-13 11:18:11 +01:00
parent 5b4a9348cd
commit ae0a8d0a79
12 changed files with 12 additions and 12 deletions

View File

@ -230,7 +230,7 @@ public class EntityNMSArmorStand extends EntityArmorStand implements NMSArmorSta
try {
VEHICLE_FIELD.set(passenger, this);
this.passengers.add(this);
this.passengers.add(passengerEntity);
} catch (ReflectiveOperationException e) {
DebugLogger.cannotSetPassenger(e);
}

View File

@ -230,7 +230,7 @@ public class EntityNMSArmorStand extends EntityArmorStand implements NMSArmorSta
try {
VEHICLE_FIELD.set(passenger, this);
this.passengers.add(this);
this.passengers.add(passengerEntity);
} catch (ReflectiveOperationException e) {
DebugLogger.cannotSetPassenger(e);
}

View File

@ -230,7 +230,7 @@ public class EntityNMSArmorStand extends EntityArmorStand implements NMSArmorSta
try {
VEHICLE_FIELD.set(passenger, this);
this.passengers.add(this);
this.passengers.add(passengerEntity);
} catch (ReflectiveOperationException e) {
DebugLogger.cannotSetPassenger(e);
}

View File

@ -232,7 +232,7 @@ public class EntityNMSArmorStand extends EntityArmorStand implements NMSArmorSta
try {
VEHICLE_FIELD.set(passenger, this);
this.passengers.add(this);
this.passengers.add(passengerEntity);
} catch (ReflectiveOperationException e) {
DebugLogger.cannotSetPassenger(e);
}

View File

@ -232,7 +232,7 @@ public class EntityNMSArmorStand extends EntityArmorStand implements NMSArmorSta
try {
VEHICLE_FIELD.set(passenger, this);
this.passengers.add(this);
this.passengers.add(passengerEntity);
} catch (ReflectiveOperationException e) {
DebugLogger.cannotSetPassenger(e);
}

View File

@ -234,7 +234,7 @@ public class EntityNMSArmorStand extends EntityArmorStand implements NMSArmorSta
try {
VEHICLE_FIELD.set(passenger, this);
this.passengers.add(this);
this.passengers.add(passengerEntity);
} catch (ReflectiveOperationException e) {
DebugLogger.cannotSetPassenger(e);
}

View File

@ -234,7 +234,7 @@ public class EntityNMSArmorStand extends EntityArmorStand implements NMSArmorSta
try {
VEHICLE_FIELD.set(passenger, this);
this.passengers.add(this);
this.passengers.add(passengerEntity);
} catch (ReflectiveOperationException e) {
DebugLogger.cannotSetPassenger(e);
}

View File

@ -234,7 +234,7 @@ public class EntityNMSArmorStand extends EntityArmorStand implements NMSArmorSta
try {
VEHICLE_FIELD.set(passenger, this);
this.passengers.add(this);
this.passengers.add(passengerEntity);
} catch (ReflectiveOperationException e) {
DebugLogger.cannotSetPassenger(e);
}

View File

@ -234,7 +234,7 @@ public class EntityNMSArmorStand extends EntityArmorStand implements NMSArmorSta
try {
VEHICLE_FIELD.set(passenger, this);
this.passengers.add(this);
this.passengers.add(passengerEntity);
} catch (ReflectiveOperationException e) {
DebugLogger.cannotSetPassenger(e);
}

View File

@ -234,7 +234,7 @@ public class EntityNMSArmorStand extends EntityArmorStand implements NMSArmorSta
try {
VEHICLE_FIELD.set(passenger, this);
this.passengers.add(this);
this.passengers.add(passengerEntity);
} catch (ReflectiveOperationException e) {
DebugLogger.cannotSetPassenger(e);
}

View File

@ -231,7 +231,7 @@ public class EntityNMSArmorStand extends EntityArmorStand implements NMSArmorSta
try {
VEHICLE_FIELD.set(passenger, this);
this.passengers.add(this);
this.passengers.add(passengerEntity);
} catch (ReflectiveOperationException e) {
DebugLogger.cannotSetPassenger(e);
}

View File

@ -231,7 +231,7 @@ public class EntityNMSArmorStand extends EntityArmorStand implements NMSArmorSta
try {
VEHICLE_FIELD.set(passenger, this);
this.passengers.add(this);
this.passengers.add(passengerEntity);
} catch (ReflectiveOperationException e) {
DebugLogger.cannotSetPassenger(e);
}