Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-04 23:30:17 +01:00
fix npe
Dieser Commit ist enthalten in:
Ursprung
672024c718
Commit
1c0ea9c60c
@ -49,8 +49,10 @@ public class ShulkerEntity extends GolemEntity {
|
|||||||
}
|
}
|
||||||
if (entityMetadata.getId() == 16) {
|
if (entityMetadata.getId() == 16) {
|
||||||
Position position = (Position) entityMetadata.getValue();
|
Position position = (Position) entityMetadata.getValue();
|
||||||
|
if(position != null){
|
||||||
metadata.put(EntityData.SHULKER_ATTACH_POS, Vector3i.from(position.getX(), position.getY(), position.getZ()));
|
metadata.put(EntityData.SHULKER_ATTACH_POS, Vector3i.from(position.getX(), position.getY(), position.getZ()));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//TODO Outdated metadata flag SHULKER_PEAK_HEIGHT
|
//TODO Outdated metadata flag SHULKER_PEAK_HEIGHT
|
||||||
// if (entityMetadata.getId() == 17) {
|
// if (entityMetadata.getId() == 17) {
|
||||||
// int height = (byte) entityMetadata.getValue();
|
// int height = (byte) entityMetadata.getValue();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren