fix mobs not spawning while mining
@@ -201,7 +201,7 @@ async def global_check(ctx):
return False
if random.randint(1, 40) == 1: # spawn mob
- if ctx.command._buckets._cooldown != None and ctx.command._buckets._cooldown >= 2:
+ if ctx.command._buckets._cooldown != None and ctx.command._buckets._cooldown.per >= 2:
bot.d.spawn_queue[ctx] = arrow.utcnow()
return True
