From dbe7497ff273044fd661a132aac4b79cea2b0a96 Mon Sep 17 00:00:00 2001 From: mrSkortch Date: Wed, 10 Sep 2014 00:55:31 -0600 Subject: [PATCH] .36 fix --- mist.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mist.lua b/mist.lua index 6fc7cdc..234f0e8 100644 --- a/mist.lua +++ b/mist.lua @@ -8,7 +8,7 @@ mist = {} -- don't change these mist.majorVersion = 3 mist.minorVersion = 5 -mist.build = 35 +mist.build = 36 @@ -4780,7 +4780,7 @@ mist.getCurrentGroupData = function(gpName) newData.name = gpName newData.groupId = tonumber(newGroup:getID()) newData.category = newGroup:getCategory() - + newData.groupName = gpName if newData.category == 2 then newData.category = 'vehicle' @@ -5026,9 +5026,13 @@ mist.teleportToPoint = function(vars) -- main teleport function that all of tele end --tostring, tostring(), + if not newGroupData.country and mist.DBs.groupsByName[newGroupData.groupName].country then + newGroupData.country = mist.DBs.groupsByName[newGroupData.groupName].country + end + if not newGroupData.category and mist.DBs.groupsByName[newGroupData.groupName].category then + newGroupData.category = mist.DBs.groupsByName[newGroupData.groupName].category + end - newGroupData.country = mist.DBs.groupsByName[newGroupData.groupName].country - newGroupData.category = mist.DBs.groupsByName[newGroupData.groupName].category if route then newGroupData.route = route end