mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Improved action check for InteractPacket (#55)
Fixes issues with 0.16 combat, where the server thinks the player is attacking an entity they're looking at
This commit is contained in:
parent
689a052bda
commit
5234327b3f
@ -2324,7 +2324,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
|
||||
$cancelled = false;
|
||||
|
||||
if($packet->action === InteractPacket::ACTION_RIGHT_CLICK){
|
||||
if($packet->action !== InteractPacket::ACTION_LEFT_CLICK){
|
||||
// TODO handle
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user