diff --git a/nodes.lua b/nodes.lua index 2f3f126..e52309e 100644 --- a/nodes.lua +++ b/nodes.lua @@ -25,7 +25,7 @@ local trap_on_timer = function (pos, elapsed) if obj:is_player() then local n = minetest.get_node(pos) if n and n.name then - if minetest.registered_nodes[n.name].x_tsm_pyramids_crack and minetest.registered_nodes[n.name].x_tsm_pyramids_crack < 2 then + if minetest.registered_nodes[n.name]._tsm_pyramids_crack and minetest.registered_nodes[n.name]._tsm_pyramids_crack < 2 then minetest.set_node(pos, {name="tsm_pyramids:trap_2"}) nodeupdate(pos) end @@ -44,7 +44,7 @@ minetest.register_node("tsm_pyramids:trap", { on_construct = function(pos) minetest.env:get_node_timer(pos):start(0.1) end, - x_tsm_pyramids_crack = 1, + _tsm_pyramids_crack = 1, on_timer = trap_on_timer, drop = "", })