Exception for siege when slotting.

This commit is contained in:
2023-08-21 17:00:27 -04:00
parent ec3a9b6cb4
commit 039e55673b
+4 -8
View File
@@ -890,16 +890,12 @@ public class Mob extends AbstractIntelligenceAgent {
if (this.building != null) { if (this.building != null) {
// Siege mobiles don't have contracts. // Mobiles inside buildings are offset from it not the zone
if (this.contract == null) { this.bindLoc = new Vector3fImmutable(this.statLat, this.statAlt, this.statLon);
this.bindLoc = this.building.getLoc().add(this.bindLoc);
// Mobiles inside buildings are offset from it not the zone if (this.contract != null || this.isSiege)
this.bindLoc = new Vector3fImmutable(this.statLat, this.statAlt, this.statLon);
this.bindLoc = this.building.getLoc().add(this.bindLoc);
} else
NPCManager.slotCharacterInBuilding(this); NPCManager.slotCharacterInBuilding(this);
} }