Removed print line and rewrote comment

This commit is contained in:
Guy Liner 2022-01-04 11:10:23 -05:00
parent 6f681b548a
commit 26c7b1a5d1
1 changed files with 1 additions and 4 deletions

View File

@ -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