From efca77a8bf622f7d02e83017eee71f3b78d3f1a9 Mon Sep 17 00:00:00 2001 From: ZXMushroom63 Date: Thu, 29 Aug 2024 19:16:08 +0800 Subject: [PATCH] timescale patchfix --- examplemods/timescale_command.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examplemods/timescale_command.js b/examplemods/timescale_command.js index 4e45e37..985b8d9 100644 --- a/examplemods/timescale_command.js +++ b/examplemods/timescale_command.js @@ -33,6 +33,10 @@ globalThis.timeScale = BigInt(Math.round(speed)); } } + if (ModAPI.server) { + console.log(ModAPI.server); + ModAPI.server.currentTime = PluginAPI.hooks.methods.nms_MinecraftServer_getCurrentTimeMillis(); + } event.preventDefault = true; } });