forked from GeyserMC/Geyser
Fix armor stand rotation (Closes #1634)
This commit is contained in:
parent
f19922ecf0
commit
047bf5f0f4
1 changed files with 7 additions and 1 deletions
|
@ -53,7 +53,7 @@ public class ArmorStandEntity extends LivingEntity {
|
|||
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
|
||||
|
@ -95,4 +95,10 @@ public class ArmorStandEntity extends LivingEntity {
|
|||
}
|
||||
super.updateBedrockMetadata(entityMetadata, session);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void spawnEntity(GeyserSession session) {
|
||||
this.rotation = Vector3f.from(rotation.getX(), rotation.getX(), rotation.getX());
|
||||
super.spawnEntity(session);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue