Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 14:30:17 +01:00
Check if the passenger is null before trying to update metadata (#1001)
* Check if the passenger is null before trying to update metadata * Fix variable name
Dieser Commit ist enthalten in:
Ursprung
b7f0780a56
Commit
0c3a6f1a6a
@ -78,7 +78,10 @@ public class StriderEntity extends AnimalEntity {
|
|||||||
|
|
||||||
// Update the passengers if we have any
|
// Update the passengers if we have any
|
||||||
for (long passenger : passengers) {
|
for (long passenger : passengers) {
|
||||||
session.getEntityCache().getEntityByJavaId(passenger).updateBedrockMetadata(session);
|
Entity passengerEntity = session.getEntityCache().getEntityByJavaId(passenger);
|
||||||
|
if (passengerEntity != null) {
|
||||||
|
passengerEntity.updateBedrockMetadata(session);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
super.updateBedrockMetadata(session);
|
super.updateBedrockMetadata(session);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren