From e1811c7bfc002b661da249ff8f314d2126c91cb7 Mon Sep 17 00:00:00 2001
From: MagicBot <MagicBot@magicbane.com>
Date: Wed, 5 Apr 2023 17:41:11 -0400
Subject: [PATCH] Corner trebs go into slot 1.

---
 src/engine/objects/Mob.java | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java
index 21c77c67..c217fa6b 100644
--- a/src/engine/objects/Mob.java
+++ b/src/engine/objects/Mob.java
@@ -1916,16 +1916,19 @@ public class Mob extends AbstractIntelligenceAgent {
 
             int count = 0;
 
+            // if it's a wall piece then the slot will be +1
+
+            if (Blueprint.isMeshWallPiece(building.meshUUID))
+                putSlot = putSlot =1;
+
             for (BuildingLocation slotLoc : buildingModel.getLocations())
                 if (slotLoc.getType() == 6)
                     count++;
 
-
             buildingLocation = buildingModel.getSlotLocation((count) - putSlot);
 
-            if (buildingLocation != null) {
+            if (buildingLocation != null)
                 slotLocation = buildingLocation.getLoc();
-            }
 
         }