forked from VoxeLibre/VoxeLibre
Syntax change
This commit is contained in:
parent
de6bde0027
commit
dab470c37d
|
@ -790,7 +790,7 @@ function node_hurt(self, dtime, cur_pos)
|
|||
self.damage_timer = self.damage_timer - dtime
|
||||
|
||||
--This gets the coords of the node below the mob
|
||||
cur_pos['y'] = cur_pos['y'] - 1
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue