diff --git a/src/world/BlockTransaction.php b/src/world/BlockTransaction.php index 1c26166eb..f30d761f3 100644 --- a/src/world/BlockTransaction.php +++ b/src/world/BlockTransaction.php @@ -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); }); }