diff options
-rw-r--r-- | anvil/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/anvil/init.lua b/anvil/init.lua index acc4996..4fd9830 100644 --- a/anvil/init.lua +++ b/anvil/init.lua @@ -287,7 +287,7 @@ minetest.register_node("anvil:anvil", { minetest.chat_send_player( puncher:get_player_name(), S('Your @1 has been repaired successfully.', tool_desc)) return else - pos.y = pos.y + anvil_item_displacement + pos.y = pos.y + anvil.setting.item_displacement minetest.sound_play({name="anvil_clang"}, {pos=pos}) minetest.add_particlespawner({ amount = 10, @@ -325,7 +325,7 @@ minetest.register_lbm({ nodenames = { "anvil:anvil" }, run_at_every_load = true, action = function(pos, node, active_object_count, active_object_count_wider) - local test_pos = {x=pos.x, y=pos.y + anvil_item_displacement, z=pos.z} + local test_pos = {x=pos.x, y=pos.y + anvil.setting.item_displacement, z=pos.z} if #minetest.get_objects_inside_radius(test_pos, 0.5) > 0 then return end update_item(pos, node) end |