mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Cog HQ teleport crash fix
This commit is contained in:
parent
9299357345
commit
2098275dfa
1 changed files with 4 additions and 1 deletions
|
@ -179,7 +179,10 @@ class QuestPoster(DirectFrame):
|
|||
hqZone = {2000:2520, 1000:1507, 3000:3508, 4000:4504, 5000:5502, 7000:7503, 9000:9505}
|
||||
|
||||
if npcZone in (-1, 0, None):
|
||||
npcHood = ZoneUtil.getCanonicalHoodId(base.localAvatar.getZoneId())
|
||||
zoneId = base.localAvatar.getZoneId()
|
||||
if ZoneUtil.isDynamicZone(zoneId) or ZoneUtil.isCogHQZone(zoneId):
|
||||
zoneId = 2000
|
||||
npcHood = ZoneUtil.getCanonicalHoodId(zoneId)
|
||||
npcZone = hqZone.get(npcHood, 2520)
|
||||
|
||||
base.cr.buildingQueryMgr.d_isSuit(npcZone, lambda isSuit: self.teleportToShopCallback(npcZone, npcHood, isSuit))
|
||||
|
|
Loading…
Reference in a new issue