From 5234327b3f9f1ecd72c2b7a2f6b7adee92051835 Mon Sep 17 00:00:00 2001 From: jojoe77777 Date: Thu, 27 Oct 2016 20:21:35 +1100 Subject: [PATCH] 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 --- src/pocketmine/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 216a1c9dc..6dc6fe331 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -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; }