mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59: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 FireBlock extends FlowableBlock{
|
||||
class FireBlock extends FlowableBlock implements LightingBlock{
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(FIRE, $meta, "Fire");
|
||||
$this->isReplaceable = true;
|
||||
|
|
@ -31,7 +31,9 @@ class FireBlock extends FlowableBlock{
|
|||
public function getDrops(Item $item, Player $player){
|
||||
return array();
|
||||
}
|
||||
|
||||
public function getMaxLightValue(){
|
||||
return 15;
|
||||
}
|
||||
public function onUpdate($type){
|
||||
if($type === BLOCK_UPDATE_NORMAL){
|
||||
for($s = 0; $s <= 5; ++$s){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue