diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-12-01 21:08:32 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-12-01 21:08:32 +0000 |
commit | f9737e1f4f0453bbb91e210b9fa8a2892a7c1dfb (patch) | |
tree | a69d81735baec935a1954a058d7d0365bb9a78a5 | |
parent | 5fbc7dd57d87c1798310b8f2a98fbe3361de7c7e (diff) |
fix lifetimer check for removing mob
-rw-r--r-- | api.lua | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,5 @@ --- Mobs Api (22nd November 2016) +-- Mobs Api (1st December 2016) mobs = {} mobs.mod = "redo" @@ -2175,8 +2175,8 @@ local mob_step = function(self, dtime) end end - minetest.log("action", - S("lifetimer expired, removed @1", self.name)) +-- minetest.log("action", +-- S("lifetimer expired, removed @1", self.name)) effect(pos, 15, "tnt_smoke.png") @@ -2384,7 +2384,8 @@ minetest.register_entity(name, { -- remove mob when out of range unless tamed if remove_far and self.remove_ok - and not self.tamed then + and not self.tamed + and self.lifetimer < 20000 then --print ("REMOVED " .. self.name) |