diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-09-01 10:58:20 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-09-01 10:58:20 +0100 |
commit | 8d3e6897bc4cd188b8e1318169b5149dae3dfb24 (patch) | |
tree | b2f23d3de45c63109b5d5e5d6aa8a86da78dc0a8 /api.lua | |
parent | 01ad44d3b3e8a85042f87c50632e0004708b8e2c (diff) |
any light damage > 12 harms light sensative mobs
Diffstat (limited to 'api.lua')
-rw-r--r-- | api.lua | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ --- Mobs Api (12th August 2017) +-- Mobs Api (1st September 2017) mobs = {} mobs.mod = "redo" @@ -569,11 +569,11 @@ local do_env_damage = function(self) return end - -- daylight above ground + -- too bright a light harms mob (was daylight above ground) if self.light_damage ~= 0 - and pos.y > 0 - and self.time_of_day > 0.2 - and self.time_of_day < 0.8 +-- and pos.y > 0 +-- and self.time_of_day > 0.2 +-- and self.time_of_day < 0.8 and (minetest.get_node_light(pos) or 0) > 12 then self.health = self.health - self.light_damage |