Ender Chest Safe Mining is a client-side mod that prevents the player from accidentally mining an Enderchest by only allowing it to be mined if the player is using the correct tool to get the Ender Chest item back.
You can enable or disable the mod by right-clicking on an Ender Chest while sneaking and empty-handed. The mod is enabled by default.