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.

This commit is contained in:
Anthony Zhang
2012-07-18 23:38:59 -04:00
parent 04bcc458d9
commit 64a452da24
3 changed files with 112 additions and 190 deletions

View File

@ -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