Add Formatting (Thank God)

This commit is contained in:
2024-08-29 15:47:58 +02:00
parent 545e47a9f3
commit 1ab45204b9
35 changed files with 2331 additions and 254 deletions

View File

@@ -1,13 +1,15 @@
import { system } from "@minecraft/server";
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
function delayedRun(callback: Function, delay: number) {
let timer = system.runTimeout(() => {
const timer = system.runTimeout(() => {
callback();
system.clearRun(timer);
}, delay);
}
function delay(t: number) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return new Promise((r: any) => {
system.runTimeout(r, t);
});