mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 06:25:32 +00:00
BlockTransaction: remove cyclic reference to self in callbacks
This commit is contained in:
parent
01794adef1
commit
c356abb917
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user