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;