BlockTransaction: remove cyclic reference to self in callbacks

This commit is contained in:
Dylan K. Taylor 2021-05-06 14:27:08 +01:00
parent 01794adef1
commit c356abb917
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -42,7 +42,7 @@ class BlockTransaction{
public function __construct(ChunkManager $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);
});
}