[airtanks] Update to Git patch 4667c26:
https://github.com/AntumDeluge/mtmod-airtanks/tree/4667c26
This commit is contained in:
parent
69009f0767
commit
f98e630e40
@ -65,7 +65,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||
* [pipeworks][] ([WTFPL][lic.wtfpl]) -- version: [d822279 Git][ver.pipeworks] *2017-04-13* ([patched][patch.pipeworks])
|
||||
* plantlife/
|
||||
* player/
|
||||
* [airtanks][] ([MIT][lic.airtanks]) -- version: [fc01ffb Git][ver.airtanks] *2017-04-01*
|
||||
* [airtanks][] ([MIT][lic.airtanks]) -- version: [fc01ffb Git][ver.airtanks] *2017-04-01* ([patched][patch.airtanks])
|
||||
* player_action/
|
||||
* [throwing][] ([WTFPL][lic.wtfpl]) -- version: [0.14-79ad788 Git][ver.throwing] *2012-02-10*
|
||||
* player_visuals/
|
||||
@ -476,6 +476,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||
[patch.3d_armor]: https://github.com/AntumDeluge/mtmp-3d_armor/tree/3f3df7b
|
||||
[patch.adv_spawning]: https://github.com/AntumDeluge/mtmod-adv_spawning/tree/e73c0aa
|
||||
[patch.advtrains]: https://github.com/AntumDeluge/mtmp-advtrains/tree/26f8bf4
|
||||
[patch.airtanks]: https://github.com/AntumDeluge/mtmod-airtanks/tree/4667c26
|
||||
[patch.animals_modpack]: https://github.com/AntumDeluge/mtmp-animals_modpack/tree/e84e1e6
|
||||
[patch.awards]: https://github.com/AntumDeluge/mtmod-awards/tree/638c137
|
||||
[patch.bags]: https://github.com/AntumDeluge/mtmod-bags/tree/4363284
|
||||
|
@ -9,11 +9,11 @@ local config = {}
|
||||
local function setting(stype, name, default, description)
|
||||
local value
|
||||
if stype == "bool" then
|
||||
value = minetest.setting_getbool(CONFIG_FILE_PREFIX..name)
|
||||
value = minetest.settings:get_bool(CONFIG_FILE_PREFIX..name)
|
||||
elseif stype == "string" then
|
||||
value = minetest.setting_get(CONFIG_FILE_PREFIX..name)
|
||||
value = minetest.settings:get(CONFIG_FILE_PREFIX..name)
|
||||
elseif stype == "int" or stype == "float" then
|
||||
value = tonumber(minetest.setting_get(CONFIG_FILE_PREFIX..name))
|
||||
value = tonumber(minetest.settings:get(CONFIG_FILE_PREFIX..name))
|
||||
end
|
||||
if value == nil then
|
||||
value = default
|
||||
@ -86,7 +86,7 @@ local function use_airtank(itemstack, user, pointed_thing, full_item)
|
||||
user:set_breath(breath)
|
||||
minetest.sound_play("airtanks_hiss", {pos = user:getpos(), gain = 0.5})
|
||||
|
||||
if (not minetest.setting_getbool("creative_mode")) or config.wear_in_creative then
|
||||
if (not minetest.settings:get_bool("creative_mode")) or config.wear_in_creative then
|
||||
local wdef = itemstack:get_definition()
|
||||
itemstack:add_wear(65535/(wdef._airtank_uses-1))
|
||||
if itemstack:get_count() == 0 then
|
||||
|
Loading…
x
Reference in New Issue
Block a user