summaryrefslogtreecommitdiff
path: root/kitten.lua
diff options
context:
space:
mode:
Diffstat (limited to 'kitten.lua')
-rw-r--r--kitten.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/kitten.lua b/kitten.lua
index 7a8cea5..a93f47e 100644
--- a/kitten.lua
+++ b/kitten.lua
@@ -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