mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Fixed #400
This commit is contained in:
parent
d0a021de73
commit
c136eb2b2e
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue