mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 15:35:31 +00:00
Allow building inside spectators
This check is pretty ugly, it'll need cleaning up later. For now, this will suffice.
This commit is contained in:
parent
bb9299070d
commit
2398e2450a
@ -1744,7 +1744,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
if($hand->isSolid() === true and $hand->getBoundingBox() !== null){
|
if($hand->isSolid() === true and $hand->getBoundingBox() !== null){
|
||||||
$entities = $this->getCollidingEntities($hand->getBoundingBox());
|
$entities = $this->getCollidingEntities($hand->getBoundingBox());
|
||||||
foreach($entities as $e){
|
foreach($entities as $e){
|
||||||
if($e instanceof Arrow or $e instanceof DroppedItem){
|
if($e instanceof Arrow or $e instanceof DroppedItem or ($e instanceof Player and $e->isSpectator())){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user