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,12 +19,14 @@
*
*/
class TorchBlock extends FlowableBlock{
class TorchBlock extends FlowableBlock implements LightingBlock{
public function __construct($meta = 0){
parent::__construct(TORCH, $meta, "Torch");
$this->hardness = 0;
}
public function getMaxLightValue(){
return 15;
}
public function onUpdate($type){
if($type === BLOCK_UPDATE_NORMAL){
$side = $this->getMetadata();