add mobs_hairball switch (false to disable)

This commit is contained in:
TenPlus1 2018-09-01 12:35:12 +01:00
parent 65fe81767c
commit 05d294fcc3
1 changed files with 5 additions and 1 deletions

View File

@ -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