This commit is contained in:
Shoghi Cervantes
2013-08-26 11:10:25 +02:00
parent 673515bc06
commit ffc95bf311
3 changed files with 3 additions and 8 deletions

View File

@ -76,10 +76,7 @@ class SugarcaneBlock extends FlowableBlock{
$block1 = $down->getSide(3); $block1 = $down->getSide(3);
$block2 = $down->getSide(4); $block2 = $down->getSide(4);
$block3 = $down->getSide(5); $block3 = $down->getSide(5);
if(($block0 instanceof WaterBlock) if(($block0 instanceof WaterBlock) or ($block1 instanceof WaterBlock) or ($block2 instanceof WaterBlock) or ($block3 instanceof WaterBlock)){
or ($block1 instanceof WaterBlock)
or ($block2 instanceof WaterBlock)
or ($block3 instanceof WaterBlock)){
$this->level->setBlock($block, new SugarcaneBlock()); $this->level->setBlock($block, new SugarcaneBlock());
$this->level->scheduleBlockUpdate(new Position($this, 0, 0, $this->level), Utils::getRandomUpdateTicks(), BLOCK_UPDATE_RANDOM); $this->level->scheduleBlockUpdate(new Position($this, 0, 0, $this->level), Utils::getRandomUpdateTicks(), BLOCK_UPDATE_RANDOM);
return true; return true;

View File

@ -60,8 +60,7 @@ class Config{
$correct = $this->check(); $correct = $this->check();
} }
public function reload() public function reload(){
{
unset($this->config); unset($this->config);
unset($this->correct); unset($this->correct);
unset($this->type); unset($this->type);

View File

@ -89,8 +89,7 @@ class Tile extends Position{
$product = $this->getSlot(2); $product = $this->getSlot(2);
$smelt = $raw->getSmeltItem(); $smelt = $raw->getSmeltItem();
$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){
{
$this->lastUpdate = microtime(true); $this->lastUpdate = microtime(true);
$this->data["MaxTime"] = $this->data["BurnTime"] = floor($fuel->getFuelTime() * 20); $this->data["MaxTime"] = $this->data["BurnTime"] = floor($fuel->getFuelTime() * 20);
$this->data["BurnTicks"] = 0; $this->data["BurnTicks"] = 0;