fix spawn named entity
This commit is contained in:
@@ -28,9 +28,9 @@ public class SpawnNamedEntityPacket implements SCPacket {
|
||||
|
||||
netStream.writeInt(id);
|
||||
netStream.writeString(entityName);
|
||||
netStream.writeInt((int) position.getX());
|
||||
netStream.writeInt((int) position.getY());
|
||||
netStream.writeInt((int) position.getZ());
|
||||
netStream.writeInt((int) (position.getBlockX() * 32d));
|
||||
netStream.writeInt((int) (position.getBlockY() * 32d));
|
||||
netStream.writeInt((int) (position.getBlockZ() * 32d));
|
||||
netStream.writeByte((byte)(int)((look.getYaw() * 256f) / 360f));
|
||||
netStream.writeByte((byte)(int)((look.getPitch() * 256f) / 360f));
|
||||
netStream.writeShort(currentItem);
|
||||
|
||||
Reference in New Issue
Block a user