From 7c5c599345286926eee3ddd893acb246b1b11e5d Mon Sep 17 00:00:00 2001 From: John Cote Date: Tue, 31 Dec 2019 14:09:47 -0500 Subject: [PATCH] minigame: fix jungle vines --- toontown/minigame/DistributedVineGame.py | 2 +- toontown/minigame/DistributedVineGameAI.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/toontown/minigame/DistributedVineGame.py b/toontown/minigame/DistributedVineGame.py index e29f749..5b0e5a9 100644 --- a/toontown/minigame/DistributedVineGame.py +++ b/toontown/minigame/DistributedVineGame.py @@ -354,7 +354,7 @@ class DistributedVineGame(DistributedMinigame): if newVelX is not None and (newVelX < -1000 or newVelX > 1000): self.notify.warning('invalid velX %s for %d, forcing to 0' % (newVelX, avId)) newVelX = 0 - if newVelZ < -1000 or newVelZ > 1000: + if newVelZ is not None and (newVelZ < -1000 or newVelZ > 1000): self.notify.warning('invalid velZ %s for %d, forcing to 0' % (newVelZ, avId)) newVelZ = 0 if newFallingInfo < self.FallingNot or newFallingInfo > self.FallingBat: diff --git a/toontown/minigame/DistributedVineGameAI.py b/toontown/minigame/DistributedVineGameAI.py index c22f364..6b97420 100644 --- a/toontown/minigame/DistributedVineGameAI.py +++ b/toontown/minigame/DistributedVineGameAI.py @@ -255,7 +255,7 @@ class DistributedVineGameAI(DistributedMinigameAI): newPosZ = 0 if newVelX is not None and (newVelX < -1000 or newVelX > 1000): newVelX = 0 - if newVelZ < -1000 or newVelZ > 1000: + if newVelZ is not None and (newVelZ < -1000 or newVelZ > 1000): newVelZ = 0 newInfo = [newVineIndex, newVineT,