Browse Source

Handling of mobs not in buildings.

magicbox-1.5.2^2
MagicBot 10 months ago
parent
commit
6a3bd89095
  1. 6
      src/engine/objects/Mob.java

6
src/engine/objects/Mob.java

@ -418,7 +418,11 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed { @@ -418,7 +418,11 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
mobile.guildUUID = guild.getObjectUUID();
mobile.parentZoneUUID = parent.getObjectUUID();
mobile.buildingUUID = building.getObjectUUID();
if (building == null)
mobile.buildingUUID = 0;
else
mobile.buildingUUID = building.getObjectUUID();
if (mobile.buildingUUID != 0)
mobile.bindLoc = Vector3fImmutable.ZERO;

Loading…
Cancel
Save