Blocks chest interaction when hostile mobs are nearby and targeting the player, enforcing combat before looting.