mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 16:45:13 +00:00
BlockTransaction: remove cyclic reference to self in callbacks
This commit is contained in:
@ -42,7 +42,7 @@ class BlockTransaction{
|
|||||||
|
|
||||||
public function __construct(ChunkManager $world){
|
public function __construct(ChunkManager $world){
|
||||||
$this->world = $world;
|
$this->world = $world;
|
||||||
$this->addValidator(function(ChunkManager $world, int $x, int $y, int $z) : bool{
|
$this->addValidator(static function(ChunkManager $world, int $x, int $y, int $z) : bool{
|
||||||
return $world->isInWorld($x, $y, $z);
|
return $world->isInWorld($x, $y, $z);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user