mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Fixed #400
This commit is contained in:
parent
d0a021de73
commit
c136eb2b2e
@ -1231,7 +1231,10 @@ class Player{
|
||||
case MC_REQUEST_CHUNK:
|
||||
break;
|
||||
case MC_USE_ITEM:
|
||||
if($this->spawned === false or $this->blocked === true){
|
||||
if(!($this->entity instanceof Entity)){
|
||||
break;
|
||||
}
|
||||
if(($this->spawned === false or $this->blocked === true) and $data["face"] >= 0 and $data["face"] <= 5){
|
||||
$target = $this->level->getBlock(new Vector3($data["x"], $data["y"], $data["z"]));
|
||||
$block = $target->getSide($data["face"]);
|
||||
$this->dataPacket(MC_UPDATE_BLOCK, array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user