Merge pull request #369 from ForceUpdate1/shulker

Fix Shulker
This commit is contained in:
Redned 2020-04-18 03:34:32 -05:00 committed by GitHub
commit bd6b4ec176
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,9 @@ public class ShulkerEntity extends GolemEntity {
}
if (entityMetadata.getId() == 16) {
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
// if (entityMetadata.getId() == 17) {