mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
Fixed DoorBlock crashing the server
This commit is contained in:
parent
1c7539b51a
commit
d8aea544f3
@ -146,7 +146,7 @@ class DoorBlock extends TransparentBlock{
|
|||||||
$pk->z = $this->z;
|
$pk->z = $this->z;
|
||||||
$pk->evid = 1003;
|
$pk->evid = 1003;
|
||||||
$pk->data = 0;
|
$pk->data = 0;
|
||||||
ServerAPI::request()->api->player->broadcastPacket($players, ProtocolInfo::LEVEL_EVENT_PACKET, $pk);
|
ServerAPI::request()->api->player->broadcastPacket($players, $pk);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user