forked from MagicBane/Server
Building Location rotations are now a quaternion.
This commit is contained in:
@@ -265,16 +265,16 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
this.notEnemy = EnumBitSet.asEnumBitSet(rs.getLong("notEnemy"), Enum.MonsterType.class);
|
||||
this.enemy = EnumBitSet.asEnumBitSet(rs.getLong("enemy"), Enum.MonsterType.class);
|
||||
this.firstName = rs.getString("mob_name");
|
||||
if (this.firstName.isEmpty()) {
|
||||
|
||||
if (this.firstName.isEmpty())
|
||||
this.firstName = this.mobBase.getFirstName();
|
||||
}
|
||||
|
||||
if (this.contract != null) {
|
||||
this.equipmentSetID = this.contract.getEquipmentSet();
|
||||
this.lastName = this.getContract().getName();
|
||||
} else {
|
||||
} else
|
||||
this.equipmentSetID = rs.getInt("equipmentSet");
|
||||
|
||||
}
|
||||
|
||||
if (rs.getString("fsm").length() > 1)
|
||||
this.BehaviourType = MobBehaviourType.valueOf(rs.getString("fsm"));
|
||||
@@ -370,11 +370,6 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
writer.putFloat(1.0f);
|
||||
}
|
||||
|
||||
// Location serialization matches NPC
|
||||
|
||||
if (mob.region != null)
|
||||
writer.putVector3f(ZoneManager.convertWorldToLocal(mob.building, mob.getLoc()));
|
||||
else
|
||||
writer.putVector3f(mob.getLoc());
|
||||
|
||||
//Rotation
|
||||
|
||||
Reference in New Issue
Block a user