Fixed DoorBlock crashing the server

This commit is contained in:
Shoghi Cervantes 2014-02-08 16:55:20 +01:00
parent 1c7539b51a
commit d8aea544f3

View File

@ -146,7 +146,7 @@ class DoorBlock extends TransparentBlock{
$pk->z = $this->z;
$pk->evid = 1003;
$pk->data = 0;
ServerAPI::request()->api->player->broadcastPacket($players, ProtocolInfo::LEVEL_EVENT_PACKET, $pk);
ServerAPI::request()->api->player->broadcastPacket($players, $pk);
}
return true;
}