Revert 67919a6

This commit is contained in:
Michael Yoo 2013-06-07 09:29:38 +09:30
parent 67919a68e1
commit a463e0c09e

View File

@ -91,20 +91,17 @@ class Tile extends Position{
$canSmelt = $smelt !== false and $raw->count > 0 and (($product->getID() === $smelt->getID() and $product->getMetadata() === $smelt->getMetadata() and $product->count < $product->getMaxStackSize()) or $product->getID() === AIR); $canSmelt = $smelt !== false and $raw->count > 0 and (($product->getID() === $smelt->getID() and $product->getMetadata() === $smelt->getMetadata() and $product->count < $product->getMaxStackSize()) or $product->getID() === AIR);
if($this->data["BurnTime"] <= 0 and $canSmelt and $fuel->getFuelTime() !== false and $fuel->count > 0) if($this->data["BurnTime"] <= 0 and $canSmelt and $fuel->getFuelTime() !== false and $fuel->count > 0)
{ {
if(!($fuel->getID === BUCKET and $fuel->getMetaData() !== LAVA)) $this->lastUpdate = microtime(true);
{ $this->data["MaxTime"] = $this->data["BurnTime"] = floor($fuel->getFuelTime() * 20);
$this->lastUpdate = microtime(true); $this->data["BurnTicks"] = 0;
$this->data["MaxTime"] = $this->data["BurnTime"] = floor($fuel->getFuelTime() * 20); --$fuel->count;
$this->data["BurnTicks"] = 0; if($fuel->count === 0){
--$fuel->count; $fuel = BlockAPI::getItem(AIR, 0, 0);
if($fuel->count === 0){ }
$fuel = BlockAPI::getItem(AIR, 0, 0); $this->setSlot(1, $fuel, false);
} $current = $this->level->getBlock($this);
$this->setSlot(1, $fuel, false); if($current->getID() === FURNACE){
$current = $this->level->getBlock($this); $this->level->setBlock($this, BlockAPI::get(BURNING_FURNACE, $current->getMetadata()));
if($current->getID() === FURNACE){
$this->level->setBlock($this, BlockAPI::get(BURNING_FURNACE, $current->getMetadata()));
}
} }
} }
if($this->data["BurnTime"] > 0){ if($this->data["BurnTime"] > 0){