World rendering Issue

This commit is contained in:
brausjonas
2022-05-16 00:45:25 +02:00
parent 2da20b9d79
commit ad2ad89fec
2 changed files with 3 additions and 3 deletions
@@ -156,8 +156,8 @@ public class World : MonoBehaviour
public bool CheckBlock(Vector3 positionInWorld) public bool CheckBlock(Vector3 positionInWorld)
{ {
if (positionInWorld.x < 0 || positionInWorld.z < 0 || if (positionInWorld.x < 0 || positionInWorld.z < 0 ||
positionInWorld.x > worldSize * Data.chunkWidth || positionInWorld.x >= worldSize * Data.chunkWidth ||
positionInWorld.z > worldSize * Data.chunkWidth) positionInWorld.z >= worldSize * Data.chunkWidth)
{ {
return false; return false;
} }
+1 -1
View File
@@ -254,7 +254,7 @@ public class Server
//player died //player died
if (data[0] == 10) if (data[0] == 10)
{ {
Console.WriteLine(playerNames[GetPlayerID(endPoint)] + " died!"); Console.WriteLine(playerNames[GetPlayerID(endPoint)] + " died! \n");
} }
} }
catch (Exception e) catch (Exception e)