1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2024-12-22 17:00:26 +01:00

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

View File

@ -1,6 +1,6 @@
local S = mobs.intllib local S = mobs.intllib
local hairball = minetest.settings:get("mobs_hairball")
-- Kitten by Jordach / BFD -- Kitten by Jordach / BFD
@ -75,6 +75,10 @@ reach = 1,
do_custom = function(self, dtime) do_custom = function(self, dtime)
if hairball == "false" then
return
end
self.hairball_timer = (self.hairball_timer or 0) + dtime self.hairball_timer = (self.hairball_timer or 0) + dtime
if self.hairball_timer < 10 then if self.hairball_timer < 10 then
return return