forked from mtcontrib/mobs_animal
add mobs_hairball switch (false to disable)
This commit is contained in:
parent
65fe81767c
commit
05d294fcc3
@ -1,6 +1,6 @@
|
||||
|
||||
local S = mobs.intllib
|
||||
|
||||
local hairball = minetest.settings:get("mobs_hairball")
|
||||
|
||||
-- Kitten by Jordach / BFD
|
||||
|
||||
@ -75,6 +75,10 @@ reach = 1,
|
||||
|
||||
do_custom = function(self, dtime)
|
||||
|
||||
if hairball == "false" then
|
||||
return
|
||||
end
|
||||
|
||||
self.hairball_timer = (self.hairball_timer or 0) + dtime
|
||||
if self.hairball_timer < 10 then
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user