World rendering Issue
This commit is contained in:
@@ -156,8 +156,8 @@ public class World : MonoBehaviour
|
||||
public bool CheckBlock(Vector3 positionInWorld)
|
||||
{
|
||||
if (positionInWorld.x < 0 || positionInWorld.z < 0 ||
|
||||
positionInWorld.x > worldSize * Data.chunkWidth ||
|
||||
positionInWorld.z > worldSize * Data.chunkWidth)
|
||||
positionInWorld.x >= worldSize * Data.chunkWidth ||
|
||||
positionInWorld.z >= worldSize * Data.chunkWidth)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -254,7 +254,7 @@ public class Server
|
||||
//player died
|
||||
if (data[0] == 10)
|
||||
{
|
||||
Console.WriteLine(playerNames[GetPlayerID(endPoint)] + " died!");
|
||||
Console.WriteLine(playerNames[GetPlayerID(endPoint)] + " died! \n");
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
Reference in New Issue
Block a user