Make grass not die from upper slabs

This commit is contained in:
Goodlyay 2017-07-22 19:33:48 -07:00
parent 648aa1fda3
commit b227e5a219

View File

@ -468,7 +468,7 @@ namespace MCGalaxy {
public bool LightPasses(ExtBlock block) {
BlockDefinition def = GetBlockDef(block);
if (def != null) return !def.BlocksLight || def.BlockDraw != DrawType.Opaque;
if (def != null) return !def.BlocksLight || def.BlockDraw != DrawType.Opaque || def.MinZ > 0;
return Block.LightPass(block.BlockID);
}
}