Skip to content

Commit

Permalink
timescale patchfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZXMushroom63 committed Aug 29, 2024
1 parent 3dc920c commit efca77a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examplemods/timescale_command.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
Expand Down

0 comments on commit efca77a

Please sign in to comment.