forked from MagicBane/Server
Serialization update.
This commit is contained in:
@@ -672,10 +672,10 @@ public class NPC extends AbstractCharacter {
|
|||||||
writer.putFloat(1.0f);
|
writer.putFloat(1.0f);
|
||||||
writer.putFloat(1.0f);
|
writer.putFloat(1.0f);
|
||||||
|
|
||||||
writer.putFloat(npc.getLoc().getX());
|
if (npc.region != null)
|
||||||
writer.putFloat(npc.getLoc().getY());
|
writer.putVector3f(ZoneManager.convertWorldToLocal(npc.building, npc.getLoc()));
|
||||||
writer.putFloat(npc.getLoc().getZ());
|
else
|
||||||
|
writer.putVector3f(npc.getLoc());
|
||||||
|
|
||||||
//Rotation
|
//Rotation
|
||||||
float radians = (float) Math.asin(npc.getRot().y) * 2;
|
float radians = (float) Math.asin(npc.getRot().y) * 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user