forked from minetest-mods/mesecons
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:
@ -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
|
Reference in New Issue
Block a user