Merge branch 'api3/network' into api3/network-mcpe-1.1

This commit is contained in:
Dylan K. Taylor 2017-04-15 10:30:02 +01:00
commit b55929b382
3 changed files with 7 additions and 3 deletions

View File

@ -2714,7 +2714,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
}else{
$this->setSprinting(true);
}
break;
return true;
case PlayerActionPacket::ACTION_STOP_SPRINT:
$ev = new PlayerToggleSprintEvent($this, false);
$this->server->getPluginManager()->callEvent($ev);
@ -2723,7 +2723,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
}else{
$this->setSprinting(false);
}
break;
return true;
case PlayerActionPacket::ACTION_START_SNEAK:
$ev = new PlayerToggleSneakEvent($this, true);
$this->server->getPluginManager()->callEvent($ev);

View File

@ -29,4 +29,8 @@ class Furnace extends BurningFurnace{
public function getName(){
return "Furnace";
}
public function getLightLevel(){
return 0;
}
}

View File

@ -26,6 +26,6 @@ use pocketmine\network\mcpe\protocol\LevelEventPacket;
class PopSound extends GenericSound{
public function __construct(Vector3 $pos, $pitch = 0){
parent::__construct($pos, LevelEventPacket::EVENT_SOUND_CLICK_FAIL, $pitch);
parent::__construct($pos, LevelEventPacket::EVENT_SOUND_POP, $pitch);
}
}