Don't use global enable_tool_wear for airtanks
This commit is contained in:
parent
aabc336d03
commit
1212b5f6ae
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user