From 9c11b4da96b66f148ec4628e1157e3f075df7982 Mon Sep 17 00:00:00 2001 From: Alar of Daggerspine Date: Wed, 1 Jun 2016 07:29:17 +0200 Subject: [PATCH] Feature: Legion Beta first round of fixes --- GarrisonCommander-Broker/ldb.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/GarrisonCommander-Broker/ldb.lua b/GarrisonCommander-Broker/ldb.lua index 5ba8aa0..db3a2bf 100644 --- a/GarrisonCommander-Broker/ldb.lua +++ b/GarrisonCommander-Broker/ldb.lua @@ -68,7 +68,8 @@ local EMPTY=EMPTY -- "Empty" local GARRISON_CACHE=GARRISON_CACHE local LE_FOLLOWER_TYPE_GARRISON_6_0=_G.LE_FOLLOWER_TYPE_GARRISON_6_0 local LE_FOLLOWER_TYPE_SHIPYARD_6_2=_G.LE_FOLLOWER_TYPE_SHIPYARD_6_2 - +local LE_GARRISON_TYPE_6_0=_G.LE_GARRISON_TYPE_6_0 +local LE_GARRISON_TYPE_6_2=_G.LE_GARRISON_TYPE_6_2 local dbversion=1 local frequency=5 local ldbtimer=nil @@ -257,7 +258,7 @@ function addon:CountEmpty() end function addon:WorkUpdate(event,success,shipments_running,shipmentCapacity,plotID) - local buildings = G.GetBuildings(); + local buildings = G.GetBuildings(LE_GARRISON_TYPE_6_0); for i = 1, #buildings do if plotID == buildings[i].plotID then local buildingID,name=G.GetBuildingInfo(buildings[i].buildingID) @@ -274,7 +275,7 @@ function addon:WorkUpdate(event,success,shipments_running,shipmentCapacity,plotI end end function addon:DiscoverFarms() - local buildings = G.GetBuildings(); + local buildings = G.GetBuildings(LE_GARRISON_TYPE_6_0); for i = 1, #buildings do local buildingID = buildings[i].buildingID; if ( buildingID) then -- 1.7.9.5