forked from GeyserMC/Geyser
fix npe
This commit is contained in:
parent
672024c718
commit
1c0ea9c60c
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ public class ShulkerEntity extends GolemEntity {
|
||||||
}
|
}
|
||||||
if (entityMetadata.getId() == 16) {
|
if (entityMetadata.getId() == 16) {
|
||||||
Position position = (Position) entityMetadata.getValue();
|
Position position = (Position) entityMetadata.getValue();
|
||||||
metadata.put(EntityData.SHULKER_ATTACH_POS, Vector3i.from(position.getX(), position.getY(), position.getZ()));
|
if(position != null){
|
||||||
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue