fix : tp cheat
This commit is contained in:
parent
d520ccca1d
commit
2547109e4a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue