From 590826b9bdb7bc8755afcf2bcb15302c0a9a6b74 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 10 Mar 2018 18:19:17 +0000 Subject: [PATCH] Player: Disallow modifying NBT of tiles inside spawn protection --- src/pocketmine/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 904194f4a..02aa9d2d1 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2874,7 +2874,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ $this->resetCraftingGridType(); $pos = new Vector3($packet->x, $packet->y, $packet->z); - if($pos->distanceSquared($this) > 10000){ + if($pos->distanceSquared($this) > 10000 or $this->level->checkSpawnProtection($this, $pos)){ return true; }