mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
test light simulation + ice melting
This commit is contained in:
parent
a071f577bf
commit
945730e148
9 changed files with 74 additions and 16 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue