diff --git a/src/material/block/plant/Sugarcane.php b/src/material/block/plant/Sugarcane.php index e185fd8e5..bc6f98a93 100644 --- a/src/material/block/plant/Sugarcane.php +++ b/src/material/block/plant/Sugarcane.php @@ -76,10 +76,7 @@ class SugarcaneBlock extends FlowableBlock{ $block1 = $down->getSide(3); $block2 = $down->getSide(4); $block3 = $down->getSide(5); - if(($block0 instanceof WaterBlock) - or ($block1 instanceof WaterBlock) - or ($block2 instanceof WaterBlock) - or ($block3 instanceof WaterBlock)){ + if(($block0 instanceof WaterBlock) or ($block1 instanceof WaterBlock) or ($block2 instanceof WaterBlock) or ($block3 instanceof WaterBlock)){ $this->level->setBlock($block, new SugarcaneBlock()); $this->level->scheduleBlockUpdate(new Position($this, 0, 0, $this->level), Utils::getRandomUpdateTicks(), BLOCK_UPDATE_RANDOM); return true; diff --git a/src/utils/Config.php b/src/utils/Config.php index 9e8bc53bd..27541f91a 100644 --- a/src/utils/Config.php +++ b/src/utils/Config.php @@ -60,8 +60,7 @@ class Config{ $correct = $this->check(); } - public function reload() - { + public function reload(){ unset($this->config); unset($this->correct); unset($this->type); diff --git a/src/world/Tile.php b/src/world/Tile.php index 182de2f8d..7a374e58c 100644 --- a/src/world/Tile.php +++ b/src/world/Tile.php @@ -89,8 +89,7 @@ class Tile extends Position{ $product = $this->getSlot(2); $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); - 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->data["MaxTime"] = $this->data["BurnTime"] = floor($fuel->getFuelTime() * 20); $this->data["BurnTicks"] = 0;