fix spawn rot?

This commit is contained in:
zimzaza4
2024-11-10 12:06:14 +08:00
parent 0706b54bd4
commit 2b07c8c10a
2 changed files with 4 additions and 3 deletions

View File

@@ -57,7 +57,6 @@ public class ModelEntity {
} }
} }
map.put(model, modelEntity); map.put(model, modelEntity);
return modelEntity; return modelEntity;
} }

View File

@@ -34,8 +34,10 @@ public class EntitySpawnPacket implements WrapperPacket {
.write(1, this.location.getY()) .write(1, this.location.getY())
.write(2, this.location.getZ()); .write(2, this.location.getZ());
packet.getBytes() packet.getBytes()
.write(0, (byte) (this.location.getYaw() * 256.0F / 360.0F)) .write(0, (byte) (this.location.getPitch() * 256.0F / 360.0F))
.write(1, (byte) (this.location.getPitch() * 256.0F / 360.0F)); .write(1, (byte) (this.location.getYaw() * 256.0F / 360.0F))
.writeSafely(2, (byte) (this.location.getYaw() * 256.0F / 360.0F));
packet.getEntityTypeModifier() packet.getEntityTypeModifier()
.writeSafely(0, type); .writeSafely(0, type);