Clean comments
parent
7dd9b59a9e
commit
21570ffa56
7
init.lua
7
init.lua
|
@ -113,13 +113,7 @@ minetest.register_globalstep(function(dtime)
|
|||
local pos_y = pos.y
|
||||
-- the middle of the block with the player's head
|
||||
pos.y = math.floor(pos_y) + 1.5
|
||||
-- local node = minetest.get_node(pos)
|
||||
|
||||
-- local light_now = minetest.get_node_light(pos) or 0
|
||||
-- if node.name == 'ignore' then
|
||||
-- can happen while world loads, set to something innocent
|
||||
-- light_now = 9
|
||||
-- end
|
||||
local light_now = minetest.get_node_light(pos) or 9
|
||||
|
||||
local sanity = PPA.get_value(player, "bewarethedark_sanity")
|
||||
|
@ -129,7 +123,6 @@ minetest.register_globalstep(function(dtime)
|
|||
--print("Standing in " .. node.name .. " at light " .. light_now .. " taking " .. dps);
|
||||
|
||||
if dps ~= 0 then
|
||||
|
||||
sanity = sanity - dps
|
||||
--print("New sanity "..sanity)
|
||||
if sanity < 0.0 and minetest.setting_getbool("enable_damage") then
|
||||
|
|
Loading…
Reference in New Issue