Whenever I try to run the script, i get the following warning and nothing generates
"You are trying to create a MonoBehaviour using the 'new' keyword. This is not allowed. MonoBehaviours can only be added using AddComponent(). Alternatively, your script can inherit from ScriptableObject or no base class at all
UnityEngine.MonoBehaviour:.ctor()
Chunk:.ctor(ChunkCoord, World) (at Assets/Scripts/Chunk.cs:23)
World:CreateChunk(ChunkCoord) (at Assets/Scripts/World.cs:119)
World:GenerateWorld() (at Assets/Scripts/World.cs:51)"
Whenever I try to run the script, i get the following warning and nothing generates
"You are trying to create a MonoBehaviour using the 'new' keyword. This is not allowed. MonoBehaviours can only be added using AddComponent(). Alternatively, your script can inherit from ScriptableObject or no base class at all UnityEngine.MonoBehaviour:.ctor() Chunk:.ctor(ChunkCoord, World) (at Assets/Scripts/Chunk.cs:23) World:CreateChunk(ChunkCoord) (at Assets/Scripts/World.cs:119) World:GenerateWorld() (at Assets/Scripts/World.cs:51)"