Implemented inline bool is_not_permeable_light

This commit is contained in:
CobaltXII
2019-01-02 16:03:27 -05:00
parent 2714cef935
commit 149c181f55

View File

@@ -375,5 +375,24 @@ inline bool is_not_permeable_ray(block_id id)
return false;
}
return true;
}
// Returns false if a block is permeable to light. Otherwise, returns true.
inline bool is_not_permeable_light(block_id id)
{
if
(
id == id_air ||
id == id_glass ||
is_cross(id)
)
{
return false;
}
return true;
}