summaryrefslogtreecommitdiff
path: root/mesecons_temperest
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2012-07-18 23:38:59 -0400
committerAnthony Zhang <azhang9@gmail.com>2012-07-18 23:38:59 -0400
commit64a452da244877496bc18378cfcb35f76d950feb (patch)
treede0aa57942522702587fcc7e1f098abf4eb889c3 /mesecons_temperest
parent04bcc458d9ff0a7595b90c67a306b453afc95d7f (diff)
downloadmesecons-64a452da244877496bc18378cfcb35f76d950feb.tar
mesecons-64a452da244877496bc18378cfcb35f76d950feb.tar.gz
mesecons-64a452da244877496bc18378cfcb35f76d950feb.tar.bz2
mesecons-64a452da244877496bc18378cfcb35f76d950feb.tar.xz
mesecons-64a452da244877496bc18378cfcb35f76d950feb.zip
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.
Diffstat (limited to 'mesecons_temperest')
-rw-r--r--mesecons_temperest/init.lua8
1 files changed, 3 insertions, 5 deletions
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