Anuken/Arc

Mods can't hook EventType.Trigger.update

deltanedas opened this issue · 1 comments

Example code: onEvent(Trigger.update, () => {})
Throws EvaluatorException: Can't find method mindustry.mod.Scripts.onEvent(mindustry.game.EventType$Trigger,function). (global.js#8)

On BE 9171

Not a bug, onEvent doesn't support triggers and doesn't really need to be around anymore. Use Events.on