diff --git a/README.md b/README.md index d0cc7aec..5d4e06d0 100644 --- a/README.md +++ b/README.md @@ -593,7 +593,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m [ver.zombie]: https://github.com/AntumMT/mod-creatures/tree/213a05b [patch.3d_armor]: https://github.com/AntumMT/mp-3d_armor/tree/19d1001 -[patch.airtanks]: https://github.com/AntumMT/mod-airtanks/tree/fd52265 +[patch.airtanks]: https://github.com/AntumMT/mod-airtanks/tree/8b7fd12 [patch.amber]: https://github.com/AntumMT/mod-amber/tree/39b852a [patch.atm]: https://github.com/AntumMT/mod-atm/tree/7771aa0 [patch.away]: https://github.com/AntumMT/mod-away/tree/3b0bf9e diff --git a/mods/equipment/airtanks/init.lua b/mods/equipment/airtanks/init.lua index 093b822a..a308b73e 100644 --- a/mods/equipment/airtanks/init.lua +++ b/mods/equipment/airtanks/init.lua @@ -5,20 +5,7 @@ local CONFIG_FILE_PREFIX = "airtanks_" local config = {} -- Setting for air tanks to wear out & break -local enable_wear = minetest.settings:get_bool("enable_tool_wear") -if enable_wear == nil then - -- Default is enabled - enable_wear = true -end - --- Check local setting if wear/break is enabled -if enable_wear then - enable_wear = minetest.settings:get_bool("airtanks_enable_wear") - if enable_wear == nil then - -- Default is enabled - enable_wear = true - end -end +local enable_wear = minetest.settings:get_bool("airtanks_enable_wear", true) local function setting(stype, name, default, description) local value