Skip to content

Commit

Permalink
Merge pull request #52 from pandorabox-io/mobsBeowolfConflictFix
Browse files Browse the repository at this point in the history
allow mobs to walk on stone
  • Loading branch information
SwissalpS committed Jan 16, 2022
2 parents fc6a6f4 + fadd980 commit 3093825
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ if minetest.get_modpath("bonemeal") then
dofile(MP.."/bonemeal.lua")
end

if minetest.get_modpath("mobs") then
dofile(MP .. "/mobs.lua")
end

if minetest.get_modpath("mobs_animal") then
-- additional animals/textures
dofile(MP.."/mobs_animal.lua")
Expand Down Expand Up @@ -222,3 +226,4 @@ end
if minetest.get_modpath("toolranks") then
dofile(MP.."/toolranks.lua")
end

10 changes: 10 additions & 0 deletions mobs.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
if 20220116 > tonumber(mobs.version) then return end
-- mobs and beowulf don't play nicely together when stone is made
-- dangerous by beowulf, we counteract that here to make mobs not fear
-- stone and become more challenging again
local is_node_dangerous = mobs.is_node_dangerous
function mobs:is_node_dangerous(mob_object, nodename)
if 'default:stone' == nodename then return false end
return is_node_dangerous(self, mob_object, nodename)
end

1 change: 1 addition & 0 deletions mod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ loot,
maptools,
mesecons_mvps,
missions,
mobs,
mobs_animal,
mobs_monster,
moreblocks,
Expand Down

0 comments on commit 3093825

Please sign in to comment.