diff --git a/src/API/ServerAPI.php b/src/API/ServerAPI.php index 0a13d20a31..699fa90a21 100644 --- a/src/API/ServerAPI.php +++ b/src/API/ServerAPI.php @@ -117,7 +117,6 @@ class ServerAPI{ console("[NOTICE] \x1b[33mVersion \"".$info["development"]["version"]."\" [".substr($info["development"]["commit"], 0, 10)."]"); console("[NOTICE] \x1b[36mGet it at PocketMine.net or ".$info["development"]["download"]); console("[NOTICE] This message will dissapear after issuing the command \"/update-done\""); - sleep(3); }else{ $this->setProperty("last-update", time()); console("[INFO] \x1b[36mThis is the latest DEVELOPMENT version"); @@ -136,7 +135,6 @@ class ServerAPI{ console("[NOTICE] \x1b[36mVersion \"".$info["stable"]["version"]."\" #".$updateN); console("[NOTICE] Get it at PocketMine.net or ".$info["stable"]["download"]); console("[NOTICE] This message will dissapear as soon as you update"); - sleep(5); }else{ $this->setProperty("last-update", time()); console("[INFO] \x1b[36mThis is the latest STABLE version"); diff --git a/src/material/block/attachable/Torch.php b/src/material/block/attachable/Torch.php index 11b8aa11b7..55c96971cc 100644 --- a/src/material/block/attachable/Torch.php +++ b/src/material/block/attachable/Torch.php @@ -43,7 +43,7 @@ class TorchBlock extends FlowableBlock{ 0 => 0, ); - if($this->getSide($faces[$side])->isTransparent === true){ //Replace wit hcommon break method + if($this->getSide($faces[$side])->isFlowable === true){ //Replace wit common break method ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem($this->id)); $this->level->setBlock($this, new AirBlock(), false); return BLOCK_UPDATE_NORMAL; @@ -64,7 +64,7 @@ class TorchBlock extends FlowableBlock{ $this->meta = $faces[$face]; $this->level->setBlock($block, $this); return true; - }elseif($this->getSide(0)->isTransparent === false){ + }elseif($this->getSide(0)->isTransparent === false or $this->getSide(0)->getID() === FENCE){ $this->meta = 0; $this->level->setBlock($block, $this); return true;