Darn, this was necessary after all.

This commit is contained in:
John 2015-05-30 18:43:03 +03:00 committed by Loudrob
parent bb46ba8049
commit a6e7fb9d83

View file

@ -401,6 +401,9 @@ class DistributedToon(DistributedPlayer.DistributedPlayer, Toon.Toon, Distribute
self.defaultShard = shard self.defaultShard = shard
def setDefaultZone(self, zoneId): def setDefaultZone(self, zoneId):
if not ZoneUtil.getCanonicalHoodId(zoneId) in ToontownGlobals.hoodNameMap:
self.defaultZone = ToontownGlobals.ToontownCentral
return
if ZoneUtil.getCanonicalHoodId(zoneId) == ToontownGlobals.FunnyFarm: if ZoneUtil.getCanonicalHoodId(zoneId) == ToontownGlobals.FunnyFarm:
self.defaultZone = ToontownGlobals.ToontownCentral self.defaultZone = ToontownGlobals.ToontownCentral
return return