From 2547109e4a60ea5d4ae0ed68a1829e1e5cce8ec0 Mon Sep 17 00:00:00 2001 From: Baptiste Date: Tue, 17 Dec 2024 18:39:33 +0100 Subject: [PATCH] fix : tp cheat --- public_html/js/global.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/js/global.js b/public_html/js/global.js index 30590e3..46bc764 100644 --- a/public_html/js/global.js +++ b/public_html/js/global.js @@ -223,7 +223,7 @@ setInterval(() => { } }, 100); document.getElementById("canvas").addEventListener("contextmenu", (e) => { - if(tp) { + if(cheat_tp) { e.preventDefault(); let bounds = this.canvas.getBoundingClientRect(); player.x=(e.clientX - bounds.x)*document.getElementById("canvas").width/bounds.width;