Fix armor stand rotation (Closes #1634)

This commit is contained in:
RednedEpic 2020-12-11 17:06:33 -06:00
parent f19922ecf0
commit 047bf5f0f4

View file

@ -53,7 +53,7 @@ public class ArmorStandEntity extends LivingEntity {
position = position.add(0d, entityType.getHeight() * (isSmall ? 0.55d : 1d), 0d); position = position.add(0d, entityType.getHeight() * (isSmall ? 0.55d : 1d), 0d);
} }
super.moveAbsolute(session, position, rotation, isOnGround, teleported); super.moveAbsolute(session, position, Vector3f.from(rotation.getX(), rotation.getX(), rotation.getX()), isOnGround, teleported);
} }
@Override @Override
@ -95,4 +95,10 @@ public class ArmorStandEntity extends LivingEntity {
} }
super.updateBedrockMetadata(entityMetadata, session); super.updateBedrockMetadata(entityMetadata, session);
} }
@Override
public void spawnEntity(GeyserSession session) {
this.rotation = Vector3f.from(rotation.getX(), rotation.getX(), rotation.getX());
super.spawnEntity(session);
}
} }