From 34a83bd71e9ca50d79bb12f5ec266fe039de2d9b Mon Sep 17 00:00:00 2001 From: beu Date: Sat, 2 Nov 2024 13:26:36 +0100 Subject: [PATCH] fix position when detecting position update from the server --- CountdownMover/info.toml | 2 +- CountdownMover/main.as | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CountdownMover/info.toml b/CountdownMover/info.toml index 42083a3..afd19f2 100644 --- a/CountdownMover/info.toml +++ b/CountdownMover/info.toml @@ -2,7 +2,7 @@ name = "Countdown Mover" author = "Beu" category = "Overlay" -version = "1.2" +version = "1.3" siteid = 431 [script] diff --git a/CountdownMover/main.as b/CountdownMover/main.as index 8ad2217..d33833a 100644 --- a/CountdownMover/main.as +++ b/CountdownMover/main.as @@ -25,7 +25,6 @@ class HookCustomizableModuleEvents: MLHook::HookMLEventsByType { super(C_MLID_UIModuleUpdate); } - // override this method to avoid reload crash? void OnEvent(MLHook::PendingEvent@ Event) override { trace("CustomizableModule updated"); G_Update = true; @@ -64,7 +63,7 @@ void OnSettingsChanged() { void Main() { @HookEvents = HookCustomizableModuleEvents(); - MLHook::RegisterMLHook(HookEvents, C_MLID_UIModuleUpdate + "_Update", false); + MLHook::RegisterMLHook(HookEvents, C_MLID_UIModuleUpdate + "_Update", true); MLHook::InjectManialinkToPlayground(C_MLID_UIModuleUpdate, C_ML_UIModuleUpdate, true); while(true) {