forked from 2009Scape/Server
Even more steps to remove random events
This commit is contained in:
parent
2ad90e9ed8
commit
a9065d763b
1 changed files with 4 additions and 0 deletions
|
|
@ -20,6 +20,10 @@ class AntiMacro : PersistTimer(0, "antimacro", isAuto = true), Commands {
|
|||
var nextRandom: RandomEvents? = null
|
||||
|
||||
override fun run(entity: Entity): Boolean {
|
||||
//Snowscape: prevent random events entirely
|
||||
entity.timers.removeTimer(this)
|
||||
return false
|
||||
|
||||
if (entity !is Player) return false
|
||||
|
||||
setNextExecution()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue