Support for newer versions and light draw fix

Avoid drawing light under covered tiles.
Fix #487