trebuchets now have pet AI with canRoam disabled

This commit is contained in:
2023-04-21 20:12:49 -05:00
parent 3329d61636
commit 45ab68caa4
4 changed files with 14 additions and 7 deletions
+3
View File
@@ -950,6 +950,9 @@ public class Mob extends AbstractIntelligenceAgent {
this.setLoc(buildingWorldLoc);
this.endLoc = buildingWorldLoc;
this.stopMovement(endLoc);
if(this.building.getBlueprint().isWallPiece()) {
MovementManager.translocate(this, new Vector3fImmutable(this.building.getLoc().x, this.npcOwner.getLoc().y, this.building.getLoc().z), this.region);
}
return;
}