diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-09-01 12:35:12 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-09-01 12:35:12 +0100 |
commit | 05d294fcc3b2a1d75ce063b5d945a97fb02fb4d2 (patch) | |
tree | 6a3c7158943a85b87f2b683aff500d58988b4a3a | |
parent | 65fe81767c40f4d3dbf17fd03f2d07d498d70a30 (diff) |
add mobs_hairball switch (false to disable)
-rw-r--r-- | kitten.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |