Cleaned up fuel duration handling, fixed some fuel items not working in furnaces

This commit is contained in:
Dylan K. Taylor
2017-08-17 10:22:47 +01:00
parent dc3f13cd30
commit 6efa4343b1
30 changed files with 123 additions and 71 deletions

View File

@ -39,6 +39,14 @@ class Bucket extends Item{
return 1;
}
public function getFuelTime() : int{
if($this->meta === Block::LAVA or $this->meta === Block::FLOWING_LAVA){
return 20000;
}
return 0;
}
public function onActivate(Level $level, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
$targetBlock = Block::get($this->meta);