Browse Source

Handling of mobs not in buildings.

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

4
src/engine/objects/Mob.java

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

Loading…
Cancel
Save