some optimisation hopefully

This commit is contained in:
Yoshman29
2023-04-21 15:52:52 +02:00
parent 565c66c800
commit d323030268
8 changed files with 25 additions and 33 deletions
@@ -62,7 +62,7 @@ class ScriptPack extends Script {
* @param event Event (will be the first parameter of the function)
* @return (modified by scripts)
*/
public function event<T:CancellableEvent>(func:String, event:T):T {
public inline function event<T:CancellableEvent>(func:String, event:T):T {
for(e in scripts) {
e.call(func, [event]);
@:privateAccess