Merge branch 'stable'

This commit is contained in:
Dylan K. Taylor
2020-01-29 20:01:30 +00:00
2 changed files with 4 additions and 5 deletions

View File

@ -248,6 +248,7 @@ class CraftingManager{
* @param Item[] $outputs * @param Item[] $outputs
* *
* @return CraftingRecipe[]|\Generator * @return CraftingRecipe[]|\Generator
* @phpstan-return \Generator<int, CraftingRecipe, void, void>
*/ */
public function matchRecipeByOutputs(array $outputs) : \Generator{ public function matchRecipeByOutputs(array $outputs) : \Generator{
//TODO: try to match special recipes before anything else (first they need to be implemented!) //TODO: try to match special recipes before anything else (first they need to be implemented!)

View File

@ -320,11 +320,9 @@ class Chunk{
$light = 15; $light = 15;
for(; $y >= 0; --$y){ for(; $y >= 0; --$y){
if($light > 0){ $light -= BlockFactory::$lightFilter[$this->getFullBlock($x, $y, $z)];
$light -= BlockFactory::$lightFilter[$this->getFullBlock($x, $y, $z)]; if($light <= 0){
if($light <= 0){ break;
break;
}
} }
$this->setBlockSkyLight($x, $y, $z, $light); $this->setBlockSkyLight($x, $y, $z, $light);
} }