Block: Derive light filter level based on isTransparent() return

this might be dynamic.
This commit is contained in:
Dylan K. Taylor 2019-02-18 13:27:22 +00:00
parent 6cdd716c34
commit 12dd6adfcc
2 changed files with 1 additions and 5 deletions

View File

@ -450,7 +450,7 @@ class Block extends Position implements BlockIds, Metadatable{
* @return int 0-15 * @return int 0-15
*/ */
public function getLightFilter() : int{ public function getLightFilter() : int{
return 15; return $this->isTransparent() ? 0 : 15;
} }
/** /**

View File

@ -29,8 +29,4 @@ abstract class Transparent extends Block{
public function isTransparent() : bool{ public function isTransparent() : bool{
return true; return true;
} }
public function getLightFilter() : int{
return 0;
}
} }