Browse Source

Serialization update.

master
MagicBot 2 years ago
parent
commit
0c45e6d36f
  1. 8
      src/engine/objects/NPC.java

8
src/engine/objects/NPC.java

@ -672,10 +672,10 @@ public class NPC extends AbstractCharacter { @@ -672,10 +672,10 @@ public class NPC extends AbstractCharacter {
writer.putFloat(1.0f);
writer.putFloat(1.0f);
writer.putFloat(npc.getLoc().getX());
writer.putFloat(npc.getLoc().getY());
writer.putFloat(npc.getLoc().getZ());
if (npc.region != null)
writer.putVector3f(ZoneManager.convertWorldToLocal(npc.building, npc.getLoc()));
else
writer.putVector3f(npc.getLoc());
//Rotation
float radians = (float) Math.asin(npc.getRot().y) * 2;

Loading…
Cancel
Save