[airtanks] Update to Git commit 5787956:
https://github.com/minetest-mods/airtanks/tree/5787956master
parent
4e6daf8315
commit
04020970b5
|
@ -37,7 +37,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||||
* [currency][] ([WTFPL][lic.currency]) -- version: [3ee673d Git][ver.currency] *2017-05-18* ([patched][patch.currency])
|
* [currency][] ([WTFPL][lic.currency]) -- version: [3ee673d Git][ver.currency] *2017-05-18* ([patched][patch.currency])
|
||||||
* [enchanting][] ([GPL / WTFPL / CC BY-SA-NA][lic.enchanting]) -- version: [13ea31c Git][ver.enchanting] *2016-12-16*
|
* [enchanting][] ([GPL / WTFPL / CC BY-SA-NA][lic.enchanting]) -- version: [13ea31c Git][ver.enchanting] *2016-12-16*
|
||||||
* equipment/
|
* equipment/
|
||||||
* [airtanks][] ([MIT][lic.airtanks]) -- version: [fc01ffb Git][ver.airtanks] *2017-04-01* ([patched][patch.airtanks])
|
* [airtanks][] ([MIT][lic.airtanks]) -- version: [5787956 Git][ver.airtanks] *2017-05-13*
|
||||||
* [slingshot][] ([MIT][lic.slingshot] / [CC0][lic.cc0]) -- version: [dffa38f Git][ver.slingshot] *2017-06-01*
|
* [slingshot][] ([MIT][lic.slingshot] / [CC0][lic.cc0]) -- version: [dffa38f Git][ver.slingshot] *2017-06-01*
|
||||||
* [xtraarmor][] ([CC BY-SA][lic.ccbysa3.0]) -- version: 0.3
|
* [xtraarmor][] ([CC BY-SA][lic.ccbysa3.0]) -- version: 0.3
|
||||||
* farming/
|
* farming/
|
||||||
|
@ -392,7 +392,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||||
[ver.3d_armor]: https://github.com/stujones11/minetest-3d_armor/tree/9577fb7
|
[ver.3d_armor]: https://github.com/stujones11/minetest-3d_armor/tree/9577fb7
|
||||||
[ver.adv_spawning]: https://github.com/sapier/adv_spawning/tree/ec41aa9
|
[ver.adv_spawning]: https://github.com/sapier/adv_spawning/tree/ec41aa9
|
||||||
[ver.advtrains]: https://github.com/orwell96/advtrains/tree/74c8784
|
[ver.advtrains]: https://github.com/orwell96/advtrains/tree/74c8784
|
||||||
[ver.airtanks]: https://github.com/minetest-mods/airtanks/tree/fc01ffb
|
[ver.airtanks]: https://github.com/minetest-mods/airtanks/tree/5787956
|
||||||
[ver.animalmaterials]: https://github.com/sapier/animalmaterials/tree/d952d27
|
[ver.animalmaterials]: https://github.com/sapier/animalmaterials/tree/d952d27
|
||||||
[ver.animals]: https://github.com/sapier/animals_modpack/tree/b9d0172
|
[ver.animals]: https://github.com/sapier/animals_modpack/tree/b9d0172
|
||||||
[ver.antum]: https://github.com/AntumDeluge/mtmp-antum/tree/2a0e695
|
[ver.antum]: https://github.com/AntumDeluge/mtmp-antum/tree/2a0e695
|
||||||
|
@ -491,7 +491,6 @@ 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/07c7b9c
|
[patch.3d_armor]: https://github.com/AntumDeluge/mtmp-3d_armor/tree/07c7b9c
|
||||||
[patch.adv_spawning]: https://github.com/AntumDeluge/mtmod-adv_spawning/tree/e73c0aa
|
[patch.adv_spawning]: https://github.com/AntumDeluge/mtmod-adv_spawning/tree/e73c0aa
|
||||||
[patch.advtrains]: https://github.com/AntumDeluge/mtmp-advtrains/tree/26f8bf4
|
[patch.advtrains]: https://github.com/AntumDeluge/mtmp-advtrains/tree/26f8bf4
|
||||||
[patch.airtanks]: https://github.com/AntumDeluge/mtmod-airtanks/tree/4667c26
|
|
||||||
[patch.animals]: https://github.com/AntumDeluge/mtmp-animals_modpack/tree/ad4c5da
|
[patch.animals]: https://github.com/AntumDeluge/mtmp-animals_modpack/tree/ad4c5da
|
||||||
[patch.areas]: https://github.com/AntumDeluge/mtmod-areas/tree/db074be
|
[patch.areas]: https://github.com/AntumDeluge/mtmod-areas/tree/db074be
|
||||||
[patch.bags]: https://github.com/AntumDeluge/mtmod-bags/tree/4363284
|
[patch.bags]: https://github.com/AntumDeluge/mtmod-bags/tree/4363284
|
||||||
|
|
|
@ -9,11 +9,11 @@ local config = {}
|
||||||
local function setting(stype, name, default, description)
|
local function setting(stype, name, default, description)
|
||||||
local value
|
local value
|
||||||
if stype == "bool" then
|
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
|
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
|
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
|
end
|
||||||
if value == nil then
|
if value == nil then
|
||||||
value = default
|
value = default
|
||||||
|
@ -86,7 +86,7 @@ local function use_airtank(itemstack, user, pointed_thing, full_item)
|
||||||
user:set_breath(breath)
|
user:set_breath(breath)
|
||||||
minetest.sound_play("airtanks_hiss", {pos = user:getpos(), gain = 0.5})
|
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()
|
local wdef = itemstack:get_definition()
|
||||||
itemstack:add_wear(65535/(wdef._airtank_uses-1))
|
itemstack:add_wear(65535/(wdef._airtank_uses-1))
|
||||||
if itemstack:get_count() == 0 then
|
if itemstack:get_count() == 0 then
|
||||||
|
|
Loading…
Reference in New Issue