From 64a452da244877496bc18378cfcb35f76d950feb Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Wed, 18 Jul 2012 23:38:59 -0400 Subject: Fix piston duplication bug, simplify piston handling, limit piston push distance to 15 blocks. Remove deprecated object:get_entity_name() call, and some obselete settings. --- mesecons_temperest/init.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'mesecons_temperest') diff --git a/mesecons_temperest/init.lua b/mesecons_temperest/init.lua index 08b3eb5..5779f2b 100644 --- a/mesecons_temperest/init.lua +++ b/mesecons_temperest/init.lua @@ -3,7 +3,7 @@ local set_node_on local set_node_off -if ENABLE_TEMPEREST==1 then +if ENABLE_TEMPEREST then set_node_on = function(pos) local node = minetest.env:get_node(pos) if node.name=="mesecons_temperest:mesecon_socket_off" then @@ -185,7 +185,7 @@ minetest.register_craft({ }) --TEMPEREST-INVERTER -if ENABLE_TEMPEREST==1 then +if ENABLE_TEMPEREST then minetest.register_node("mesecons_temperest:mesecon_inverter_off", { drawtype = "nodebox", paramtype = "light", @@ -241,6 +241,4 @@ if ENABLE_TEMPEREST==1 then {'"mesecons:mesecon_off"', '"default:steel_ingot"', '"mesecons:mesecon_off"'}, } }) -end - - +end \ No newline at end of file -- cgit v1.2.3