[kpgmobs] Update to Git patch 0773e37:
https://github.com/AntumDeluge/mtmod-kpgmobs/tree/0773e37master
parent
82b785bc6a
commit
68284ba182
|
@ -490,7 +490,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
|||
[patch.helicopter]: https://github.com/AntumDeluge/mtmod-helicopter/tree/66a6523
|
||||
[patch.hovercraft]: https://github.com/AntumDeluge/mtmod-hovercraft/tree/96ad3b4
|
||||
[patch.hud]: https://github.com/AntumDeluge/mtmod-hud/tree/3473476
|
||||
[patch.kpgmobs]: https://github.com/AntumDeluge/mtmod-kpgmobs/tree/7da994c
|
||||
[patch.kpgmobs]: https://github.com/AntumDeluge/mtmod-kpgmobs/tree/0773e37
|
||||
[patch.mesecons]: https://github.com/AntumDeluge/mtmp-mesecons/tree/2c5beee
|
||||
[patch.mobf_core]: https://github.com/AntumDeluge/mtmp-mobf_core/tree/e6fa3b7
|
||||
[patch.mobs_goblins]: https://github.com/AntumDeluge/mtmod-mobs_goblins/tree/c7fc71b
|
||||
|
|
|
@ -130,7 +130,7 @@ function kpgmobs:register_mob(name, def)
|
|||
|
||||
end
|
||||
|
||||
if self.type == "monster" and minetest.setting_getbool("only_peaceful_mobs") then
|
||||
if self.type == "monster" and minetest.settings:get_bool("only_peaceful_mobs") then
|
||||
self.object:remove()
|
||||
end
|
||||
|
||||
|
@ -232,7 +232,7 @@ function kpgmobs:register_mob(name, def)
|
|||
do_env_damage(self)
|
||||
end
|
||||
|
||||
if self.type == "monster" and minetest.setting_getbool("enable_damage") then
|
||||
if self.type == "monster" and minetest.settings:get_bool("enable_damage") then
|
||||
for _,player in pairs(minetest.get_connected_players()) do
|
||||
local s = self.object:getpos()
|
||||
local p = player:getpos()
|
||||
|
@ -459,7 +459,7 @@ function kpgmobs: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_mobs") then
|
||||
if self.type == "monster" and minetest.settings:get_bool("only_peaceful_mobs") then
|
||||
self.object:remove()
|
||||
end
|
||||
self.lifetimer = 600 - dtime_s
|
||||
|
@ -539,7 +539,7 @@ function kpgmobs:register_spawn(name, nodes, max_light, min_light, chance, activ
|
|||
return
|
||||
end
|
||||
|
||||
if minetest.setting_getbool("display_mob_spawn") then
|
||||
if minetest.settings:get_bool("display_mob_spawn") then
|
||||
minetest.chat_send_all("[kpgmobs] Add "..name.." at "..minetest.pos_to_string(pos))
|
||||
end
|
||||
minetest.env:add_entity(pos, name)
|
||||
|
|
|
@ -507,13 +507,13 @@ kpgmobs:register_mob("kpgmobs:sheep", {
|
|||
local item = clicker:get_wielded_item()
|
||||
if item:get_name() == "farming:wheat" then
|
||||
if not self.tamed then
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
if not minetest.settings:get_bool("creative_mode") then
|
||||
item:take_item()
|
||||
clicker:set_wielded_item(item)
|
||||
end
|
||||
self.tamed = true
|
||||
elseif self.naked then
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
if not minetest.settings:get_bool("creative_mode") then
|
||||
item:take_item()
|
||||
clicker:set_wielded_item(item)
|
||||
end
|
||||
|
@ -1104,6 +1104,6 @@ minetest.register_craftitem("kpgmobs:bucket_milk", {
|
|||
on_use = minetest.item_eat(8, "bucket:bucket_empty"),
|
||||
})
|
||||
|
||||
if minetest.setting_get("log_mods") then
|
||||
if minetest.settings:get("log_mods") then
|
||||
minetest.log("action", "kpgmobs loaded")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue