Norbyte / ositools

Advanced scripting and mod support for Divinity Original Sin 2
MIT License
376 stars 30 forks source link

Ext.OnNextTick does not work #80

Closed PinewoodPip closed 2 years ago

PinewoodPip commented 2 years ago

Extender Version

v56

Game Version

v3.6.117.3735

Bug Summary

Ext.OnNextTick does not work as it does not call Subscribe properly, and the Once flag doesn't work.

Ext.OnNextTick = function (fun)
    Ext.Events.Tick.Subscribe(fun, {Once = true})
end

Should be:

Ext.OnNextTick = function (fun)
    Ext.Events.Tick:Subscribe(fun, {Once = true})
end

Nonetheless the listener is not removed after the tick.

Links

No response

PinewoodPip commented 2 years ago

Looks to be working now, thanks.