Luke aka SwissalpS fadd98024e add version check and update to newest version
also adjusted varname to what author is using
added mobs to optional dependencies for perfectness sake
and fixed beowulf typo
2022-01-16 18:07:35 +01:00

11 lines
455 B
Lua

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