fix position when detecting position update from the server

This commit is contained in:
Beu 2024-11-02 13:26:36 +01:00
parent 2d4257b010
commit 34a83bd71e
2 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,7 @@
name = "Countdown Mover"
author = "Beu"
category = "Overlay"
version = "1.2"
version = "1.3"
siteid = 431
[script]

View File

@ -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) {