From 7d5b162ae9c7942bc21725bd310b46ebe8e4e4a2 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Fri, 10 Apr 2015 15:38:53 +0100 Subject: tidied & optimized code --- extra.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'extra.lua') diff --git a/extra.lua b/extra.lua index 57281fe..6139ac1 100644 --- a/extra.lua +++ b/extra.lua @@ -12,9 +12,6 @@ minetest.register_node("ethereal:vine", { is_ground_content = false, selection_box = { type = "wallmounted", - --wall_top = = - --wall_bottom = = - --wall_side = = }, groups = {choppy=3, oddly_breakable_by_hand=1}, legacy_wallmounted = true, @@ -44,9 +41,6 @@ minetest.register_node("ethereal:stone_ladder", { is_ground_content = false, selection_box = { type = "wallmounted", - --wall_top = = - --wall_bottom = = - --wall_side = = }, groups = {cracky=3, oddly_breakable_by_hand=1}, legacy_wallmounted = true, @@ -310,10 +304,10 @@ minetest.register_craft({ minetest.register_on_generated(function(minp, maxp, seed) local coal_nodes = minetest.find_nodes_in_area(minp, maxp, "default:stone_with_coal") - + local bpos for key, pos in pairs(coal_nodes) do - local bpos = { x=pos.x, y=pos.y + 1, z=pos.z } + bpos = { x=pos.x, y=pos.y + 1, z=pos.z } if minetest.get_node(bpos).name == "air" then if bpos.y > -3000 and bpos.y < -2000 then -- cgit v1.2.3