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:
jojoe77777 2016-10-27 20:21:35 +11:00 committed by Dylan K. Taylor
parent 689a052bda
commit 5234327b3f

View File

@ -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;
}