mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
making BlockPunchSound server-controlled
This commit is contained in:
@@ -756,6 +756,7 @@ class InGamePacketHandler extends PacketHandler{
|
||||
public function handleLevelSoundEvent(LevelSoundEventPacket $packet) : bool{
|
||||
//TODO: we want to block out this packet completely, but we don't yet know the full scope of sounds that the client sends us from here
|
||||
switch($packet->sound){
|
||||
case LevelSoundEventPacket::SOUND_HIT: //block punch, maybe entity attack too?
|
||||
case LevelSoundEventPacket::SOUND_LAND:
|
||||
case LevelSoundEventPacket::SOUND_FALL:
|
||||
case LevelSoundEventPacket::SOUND_FALL_SMALL:
|
||||
|
Reference in New Issue
Block a user