forked from VoxeLibre/VoxeLibre
Removed print line and rewrote comment
This commit is contained in:
parent
6f681b548a
commit
26c7b1a5d1
|
@ -789,16 +789,13 @@ function node_hurt(self, dtime, cur_pos)
|
|||
--tick and the current one.
|
||||
self.damage_timer = self.damage_timer - dtime
|
||||
|
||||
--gets the current position of the mob
|
||||
--This gets the coords of the node below the mob
|
||||
cur_pos['y'] = cur_pos['y'] - 1
|
||||
|
||||
-- If the block below the mob is a magma block it gets hurt every half a second
|
||||
if minetest.get_node(cur_pos).name == 'mcl_nether:magma' and self.health > 0 and self.damage_timer <= 0 then
|
||||
print(minetest.get_node(cur_pos).name)
|
||||
|
||||
-- If the mobs hp is greater than zero, it gets hurt.
|
||||
mcl_util.deal_damage(self.object, 1, {type = "hot_floor"})
|
||||
|
||||
--pause_timer reset to 1
|
||||
self.damage_timer = 1
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue