From 87031b60518731f62dbce0ffb1601b0c34d506c9 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 21 Jan 2016 14:59:28 +0000 Subject: Optimize code, allfaces leaves by default, leaves walkable by default --- gates.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'gates.lua') diff --git a/gates.lua b/gates.lua index f669615..b351582 100644 --- a/gates.lua +++ b/gates.lua @@ -26,6 +26,7 @@ function gate_rightclick(pos, node) end node.name = split[1] .. "_" .. split[2] .. "_" .. name + minetest.swap_node(pos, node) minetest.sound_play("doors_door_"..sound, { @@ -60,7 +61,10 @@ minetest.register_node("ethereal:fencegate_"..row[1].."_open", { sunlight_propagates = true, is_ground_content = false, walkable = true, - groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, not_in_inventory = 1}, + groups = { + snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, + flammable = 2, not_in_inventory = 1 + }, drop = "ethereal:fencegate_"..row[1].."_closed", drawtype = "nodebox", node_box = { @@ -93,8 +97,10 @@ minetest.register_alias("ethereal:"..row[1].."gate_open", "ethereal:fencegate_". minetest.register_node("ethereal:fencegate_"..row[1].."_closed", { description = row[2].." Gate", tiles = {row[3]}, - inventory_image = "default_gate_overlay.png^"..row[3].."^default_gate_overlay.png^[makealpha:255,126,126", - wield_image = "default_gate_overlay.png^"..row[3].."^default_gate_overlay.png^[makealpha:255,126,126", + inventory_image = "default_gate_overlay.png^" .. row[3] + .. "^default_gate_overlay.png^[makealpha:255,126,126", + wield_image = "default_gate_overlay.png^" .. row[3] + .. "^default_gate_overlay.png^[makealpha:255,126,126", paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, -- cgit v1.2.3