mirror of
https://github.com/Poikilos/mobs.git
synced 2023-10-03 07:28:50 -07:00
Dont attack if enable_damge is false
This commit is contained in:
parent
eab37a1422
commit
4a14524af0
2
api.lua
2
api.lua
@ -129,7 +129,7 @@ function mobs:register_mob(name, def)
|
||||
do_env_damage(self)
|
||||
end
|
||||
|
||||
if self.type == "monster" then
|
||||
if self.type == "monster" and minetest.setting_getbool("enable_damage") then
|
||||
for _,player in pairs(minetest.get_connected_players()) do
|
||||
local s = self.object:getpos()
|
||||
local p = player:getpos()
|
||||
|
Loading…
x
Reference in New Issue
Block a user