Browse Source

Location serialization matches NPC

master
MagicBot 2 years ago
parent
commit
c029a881e9
  1. 5
      src/engine/objects/Mob.java

5
src/engine/objects/Mob.java

@ -354,8 +354,11 @@ public class Mob extends AbstractIntelligenceAgent { @@ -354,8 +354,11 @@ public class Mob extends AbstractIntelligenceAgent {
writer.putFloat(1.0f);
}
//Believe this is spawn loc, ignore for now
// Location serialization matches NPC
if (mob.region != null)
writer.putVector3f(ZoneManager.convertWorldToLocal(mob.building, mob.getLoc()));
else
writer.putVector3f(mob.getLoc());
//Rotation

Loading…
Cancel
Save