mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 01:39:52 +00:00
Merge branch 'api3/network' into api3/network-mcpe-1.1
This commit is contained in:
commit
b55929b382
@ -2714,7 +2714,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
}else{
|
}else{
|
||||||
$this->setSprinting(true);
|
$this->setSprinting(true);
|
||||||
}
|
}
|
||||||
break;
|
return true;
|
||||||
case PlayerActionPacket::ACTION_STOP_SPRINT:
|
case PlayerActionPacket::ACTION_STOP_SPRINT:
|
||||||
$ev = new PlayerToggleSprintEvent($this, false);
|
$ev = new PlayerToggleSprintEvent($this, false);
|
||||||
$this->server->getPluginManager()->callEvent($ev);
|
$this->server->getPluginManager()->callEvent($ev);
|
||||||
@ -2723,7 +2723,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
}else{
|
}else{
|
||||||
$this->setSprinting(false);
|
$this->setSprinting(false);
|
||||||
}
|
}
|
||||||
break;
|
return true;
|
||||||
case PlayerActionPacket::ACTION_START_SNEAK:
|
case PlayerActionPacket::ACTION_START_SNEAK:
|
||||||
$ev = new PlayerToggleSneakEvent($this, true);
|
$ev = new PlayerToggleSneakEvent($this, true);
|
||||||
$this->server->getPluginManager()->callEvent($ev);
|
$this->server->getPluginManager()->callEvent($ev);
|
||||||
|
@ -29,4 +29,8 @@ class Furnace extends BurningFurnace{
|
|||||||
public function getName(){
|
public function getName(){
|
||||||
return "Furnace";
|
return "Furnace";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getLightLevel(){
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
@ -26,6 +26,6 @@ use pocketmine\network\mcpe\protocol\LevelEventPacket;
|
|||||||
|
|
||||||
class PopSound extends GenericSound{
|
class PopSound extends GenericSound{
|
||||||
public function __construct(Vector3 $pos, $pitch = 0){
|
public function __construct(Vector3 $pos, $pitch = 0){
|
||||||
parent::__construct($pos, LevelEventPacket::EVENT_SOUND_CLICK_FAIL, $pitch);
|
parent::__construct($pos, LevelEventPacket::EVENT_SOUND_POP, $pitch);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user