mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +00:00
Merge branch 'stable'
This commit is contained in:
commit
9492325eef
@ -248,6 +248,7 @@ class CraftingManager{
|
||||
* @param Item[] $outputs
|
||||
*
|
||||
* @return CraftingRecipe[]|\Generator
|
||||
* @phpstan-return \Generator<int, CraftingRecipe, void, void>
|
||||
*/
|
||||
public function matchRecipeByOutputs(array $outputs) : \Generator{
|
||||
//TODO: try to match special recipes before anything else (first they need to be implemented!)
|
||||
|
@ -320,11 +320,9 @@ class Chunk{
|
||||
|
||||
$light = 15;
|
||||
for(; $y >= 0; --$y){
|
||||
if($light > 0){
|
||||
$light -= BlockFactory::$lightFilter[$this->getFullBlock($x, $y, $z)];
|
||||
if($light <= 0){
|
||||
break;
|
||||
}
|
||||
$light -= BlockFactory::$lightFilter[$this->getFullBlock($x, $y, $z)];
|
||||
if($light <= 0){
|
||||
break;
|
||||
}
|
||||
$this->setBlockSkyLight($x, $y, $z, $light);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user