diff --git a/src/client/player/PlayerBody.js b/src/client/player/PlayerBody.js index 03200b1..9f663db 100644 --- a/src/client/player/PlayerBody.js +++ b/src/client/player/PlayerBody.js @@ -63,7 +63,7 @@ export class PlayerBody extends PhysicsMesh { } static Mesh_() { - const texture = new THREE.TextureLoader().load('../../assets/terrain/Skyboxes/SkySkybox.png'); + const texture = new THREE.TextureLoader().load('/assets/terrain/Skyboxes/SkySkybox.png'); const capsuleMaterial = new THREE.MeshPhongMaterial({ map: texture }); const cylinderHeight = height - 2 * radius; // Adjusted to leave space for hemispheres diff --git a/src/networking/Packets.js b/src/networking/Packets.js index 7a7fbf4..ce2bc22 100644 --- a/src/networking/Packets.js +++ b/src/networking/Packets.js @@ -216,7 +216,6 @@ export class JoinGamePacket extends GenericPacket { static handleJoinGame(packet) { console.log(`${packet.peer} joined the world!`); - g_world.addSphere(0.25, {x: 0, y: 0, z: 0}); g_Lobby.createPlayerBody(packet.peer); } }