From 76f5fc05c1c8515d6ace7df51b66163377f3ee73 Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Tue, 6 Jun 2017 20:43:27 -0700 Subject: [PATCH] [spidermob] Update to Git patch 25a88ff: https://github.com/AntumDeluge/mtmod-spidermob/tree/25a88ff --- README.md | 4 ++-- mods/mobiles/aggressive/spidermob/api.lua | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 81ae4e92..cd143215 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m * [mobs_goblins][] ([CC-BY-SA / CC-BY / CC0][lic.mobs_goblins]) -- version: [6c7fdf9 Git][ver.mobs_goblins] *2017-05-23* ([patched][patch.mobs_goblins]) * [mobs_monster][] ([MIT][lic.mobs_monster]) -- version: [f6d0e01 Git][ver.mobs_monster] *2017-04-27* * [sneeker][] ([WTFPL][lic.wtfpl] / [CC0][lic.cc0]) -- version: [9e1b11a Git][ver.sneeker] *2017-06-04* - * [spidermob][] ([LGPL][lic.lgpl2.1] / [CC BY-SA][lic.ccbysa3.0] / [MIT][lic.mit] / [WTFPL][lic.spidermob] / [Unlicense][lic.unlicense]) -- version [8f9080a Git][ver.spidermob] *2016-08-14* ([patched][patch.spidermob]) + * [spidermob][] ([LGPL][lic.lgpl2.1] / [CC BY-SA][lic.ccbysa3.0] / [MIT][lic.mit] / [WTFPL][lic.spidermob] / [Unlicense][lic.unlicense]) -- version [8f9080a Git][ver.spidermob] *2017-06-02* ([patched][patch.spidermob]) * mobiles/engine/ * [mobs_redo][] ([MIT][lic.mobs_redo]) -- version: [4eb1c93 Git][ver.mobs_redo] *2017-06-04* ([patched][patch.mobs_redo]) * mobiles/general/ @@ -535,7 +535,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m [patch.rainbow_ore]: https://github.com/AntumDeluge/mtmod-rainbow_ore/tree/60dc35e [patch.snowdrift]: https://github.com/AntumDeluge/mtmod-snowdrift/tree/1b9da4f [patch.spawneggs]: https://github.com/AntumDeluge/mtmod-spawneggs/tree/03edd95 -[patch.spidermob]: https://github.com/AntumDeluge/mtmod-spidermob/tree/89b9bc4 +[patch.spidermob]: https://github.com/AntumDeluge/mtmod-spidermob/tree/25a88ff [patch.technic]: https://github.com/AntumDeluge/mtmod-technic/tree/3577609 [patch.throwing]: https://github.com/AntumDeluge/mtmod-throwing/tree/7b48d90 [patch.trash_can]: https://github.com/AntumDeluge/mtmod-trash_can/tree/5a92bf4 diff --git a/mods/mobiles/aggressive/spidermob/api.lua b/mods/mobiles/aggressive/spidermob/api.lua index 6e369b72..61fe188c 100644 --- a/mods/mobiles/aggressive/spidermob/api.lua +++ b/mods/mobiles/aggressive/spidermob/api.lua @@ -172,7 +172,7 @@ function spidermob:register_mob(name, def) on_step = function(self, dtime) - if self.type == "monster" and minetest.setting_getbool("only_peaceful_spidermob") then + if self.type == "monster" and minetest.settings:get_bool("only_peaceful_spidermob") then self.object:remove() end @@ -295,7 +295,7 @@ function spidermob:register_mob(name, def) end -- FIND SOMEONE TO ATTACK - if ( self.type == "monster" or self.type == "barbarian" ) and minetest.setting_getbool("enable_damage") and self.state ~= "attack" then + if ( self.type == "monster" or self.type == "barbarian" ) and minetest.settings:get_bool("enable_damage") and self.state ~= "attack" then local s = self.object:getpos() local inradius = minetest.get_objects_inside_radius(s,self.view_range) local player = nil @@ -594,7 +594,7 @@ function spidermob:register_mob(name, def) self.state = "stand" self.object:setvelocity({x=0, y=self.object:getvelocity().y, z=0}) self.object:setyaw(math.random(1, 360)/180*math.pi) - if self.type == "monster" and minetest.setting_getbool("only_peaceful_spidermob") then + if self.type == "monster" and minetest.settings:get_bool("only_peaceful_spidermob") then self.object:remove() end if self.type ~= "npc" then @@ -822,7 +822,7 @@ function spidermob:register_spawn(name, nodes, max_light, min_light, chance, act return end - if minetest.setting_getbool("display_mob_spawn") then + if minetest.settings:get_bool("display_mob_spawn") then minetest.chat_send_all("[spidermob] Add "..name.." at "..minetest.pos_to_string(pos)) end local mob = minetest.add_entity(pos, name)