Spaces:
Sleeping
Sleeping
Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
@@ -59,7 +59,7 @@
|
|
59 |
|
60 |
// Fetch and update world
|
61 |
async function move(dx, dz) {
|
62 |
-
const response = await fetch(`http://
|
63 |
const data = await response.json();
|
64 |
playerPos = data.player_pos;
|
65 |
const key = `${data.chunk_coords[0]},${data.chunk_coords[1]}`;
|
|
|
59 |
|
60 |
// Fetch and update world
|
61 |
async function move(dx, dz) {
|
62 |
+
const response = await fetch(`http://broadfeild-dev-mind-craft.hf.space/move?dx=${dx}&dz=${dz}`);
|
63 |
const data = await response.json();
|
64 |
playerPos = data.player_pos;
|
65 |
const key = `${data.chunk_coords[0]},${data.chunk_coords[1]}`;
|