Fix bug with generate: false
This commit is contained in:
parent
0bf8f75c5a
commit
0542b5eb62
@ -107,7 +107,7 @@ namespace TrueCraft.Core.Lighting
|
||||
if (World.IsValidPosition(coords + Neighbors[i]))
|
||||
{
|
||||
IChunk c;
|
||||
var adjusted = World.FindBlockPosition(coords + Neighbors[i], out c, generate: false);
|
||||
var adjusted = World.FindBlockPosition(coords + Neighbors[i], out c, false);
|
||||
if (c != null)
|
||||
{
|
||||
int val;
|
||||
|
@ -80,7 +80,7 @@ namespace TrueCraft.Core.World
|
||||
{
|
||||
if (World.ChunkProvider == null)
|
||||
throw new ArgumentException("The requested chunk is not loaded.", "position");
|
||||
if (!generate)
|
||||
if (generate)
|
||||
GenerateChunk(position);
|
||||
else
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user