Fix bug with generate: false

This commit is contained in:
Drew DeVault 2015-06-26 17:00:39 -06:00
parent 0bf8f75c5a
commit 0542b5eb62
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;