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,