3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-03 14:50:19 +01:00

Fix armor stand rotation (Closes #1634)

Dieser Commit ist enthalten in:
RednedEpic 2020-12-11 17:06:33 -06:00
Ursprung f19922ecf0
Commit 047bf5f0f4

Datei anzeigen

@ -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);
}
} }