test light simulation + ice melting

This commit is contained in:
GameHerobrine 2022-05-11 19:45:37 +03:00
parent a071f577bf
commit 945730e148
9 changed files with 74 additions and 16 deletions

View file

@ -19,7 +19,7 @@
*
*/
class LavaBlock extends LiquidBlock{
class LavaBlock extends LiquidBlock implements LightingBlock{
public function __construct($meta = 0){
parent::__construct(LAVA, $meta, "Lava");
$this->hardness = 0;
@ -31,6 +31,10 @@ class LavaBlock extends LiquidBlock{
return $ret;
}
public function getMaxLightValue(){
return 15;
}
public function getSourceCount(){
$count = 0;
for($side = 2; $side <= 5; ++$side){