Fixed regression causing random events to trigger for bots

This commit is contained in:
Ceikry
2023-08-17 12:27:20 +00:00
committed by Ryan
parent dd017c85d2
commit 11ebc0c0c4
3 changed files with 12 additions and 4 deletions
@@ -37,7 +37,7 @@ class AntiMacro : PersistTimer(0, "antimacro", isAuto = true), Commands {
}
override fun onRegister(entity: Entity) {
if (entity !is Player)
if (entity !is Player || entity.isArtificial)
entity.timers.removeTimer(this)
if (runInterval == 0)