Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-09-08 12:32:53 +02:00
Fix painting rotation (#597)
* Fix painting rotation * add comment and spacing * Dont sleep everything :P * Fix whitespace * Remove whitespace * Fix underlying issue Instead of adding a delay, exclude Painting in HeadLookTranslator.java. Thanks AJ! * Remove unneeded import Co-authored-by: Camotoy <20743703+DoctorMacc@users.noreply.github.com>
Dieser Commit ist enthalten in:
Ursprung
61e0e796da
Commit
81d3b0ef10
@ -50,7 +50,7 @@ public class JavaEntityHeadLookTranslator extends PacketTranslator<ServerEntityH
|
||||
|
||||
entity.setRotation(Vector3f.from(entity.getRotation().getX(), entity.getRotation().getY(), packet.getHeadYaw()));
|
||||
|
||||
if (entity.getEntityType() != EntityType.PLAYER) {
|
||||
if (entity.getEntityType() != EntityType.PLAYER && entity.getEntityType() != EntityType.PAINTING) {
|
||||
MoveEntityAbsolutePacket moveEntityAbsolutePacket = new MoveEntityAbsolutePacket();
|
||||
moveEntityAbsolutePacket.setRuntimeEntityId(entity.getGeyserId());
|
||||
moveEntityAbsolutePacket.setPosition(entity.getPosition());
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren