fix extradata defaults for broadcastLevelSoundEvent

fixes TNT sounds not working, amongst other things
This commit is contained in:
Dylan K. Taylor 2018-12-12 17:42:52 +00:00
parent 231e491bb9
commit ec4c61e113
2 changed files with 2 additions and 2 deletions

View File

@ -506,7 +506,7 @@ class Level implements ChunkManager, Metadatable{
* @param bool $isBabyMob
* @param bool $disableRelativeVolume If true, all players receiving this sound-event will hear the sound at full volume regardless of distance
*/
public function broadcastLevelSoundEvent(Vector3 $pos, int $soundId, int $extraData = 1, int $entityTypeId = -1, bool $isBabyMob = false, bool $disableRelativeVolume = false){
public function broadcastLevelSoundEvent(Vector3 $pos, int $soundId, int $extraData = -1, int $entityTypeId = -1, bool $isBabyMob = false, bool $disableRelativeVolume = false){
$pk = new LevelSoundEventPacket();
$pk->sound = $soundId;
$pk->extraData = $extraData;

View File

@ -249,7 +249,7 @@ class LevelSoundEventPacket extends DataPacket{
/** @var Vector3 */
public $position;
/** @var int */
public $extraData = 0;
public $extraData = -1;
/** @var string */
public $entityType = ":"; //???
/** @var bool */