summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-09-01 12:35:12 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2018-09-01 12:35:12 +0100
commit05d294fcc3b2a1d75ce063b5d945a97fb02fb4d2 (patch)
tree6a3c7158943a85b87f2b683aff500d58988b4a3a
parent65fe81767c40f4d3dbf17fd03f2d07d498d70a30 (diff)
add mobs_hairball switch (false to disable)
-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