From 5b91be81cc670199b5e7dad3a5fca387c58029b1 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 3 Dec 2019 12:16:10 +0000 Subject: [PATCH] Entity: rewrite dbbe1f2d5c04059ee9ddad12a0d33fbaea933683 for master --- src/entity/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entity/Entity.php b/src/entity/Entity.php index c053aa161..ef32fb6da 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -1633,7 +1633,7 @@ abstract class Entity{ */ public function spawnTo(Player $player) : void{ $id = spl_object_id($player); - if(!isset($this->hasSpawned[$id])){ + if(!isset($this->hasSpawned[$id]) and $player->isUsingChunk($this->location->getFloorX() >> 4, $this->location->getFloorZ() >> 4)){ $this->hasSpawned[$id] = $player; $this->sendSpawnPacket($player);