mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-23 01:10:25 +01:00
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 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
|
||||||
|
Loading…
Reference in New Issue
Block a user