1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-12-25 02:10:23 +01:00

get rid of some extraneous print statements

This commit is contained in:
Vanessa Ezekowitz 2013-11-25 23:58:51 -05:00
parent 7289bfcfba
commit bf7993b802
3 changed files with 1 additions and 7 deletions

View File

@ -15,11 +15,9 @@ function autocraft(inventory, pos)
local new local new
if autocrafterCache[minetest.hash_node_position(pos)] == nil then if autocrafterCache[minetest.hash_node_position(pos)] == nil then
--print("first call for this autocrafter at pos("..pos.x..","..pos.y..","..pos.z..")")
recipe_last = {} recipe_last = {}
for i = 1, 9 do for i = 1, 9 do
recipe_last[i] = recipe[i] recipe_last[i] = recipe[i]
--print (recipe_last[i]:get_name())
recipe[i] = ItemStack({name = recipe[i]:get_name(), count = 1}) recipe[i] = ItemStack({name = recipe[i]:get_name(), count = 1})
end end
result, new = minetest.get_craft_result({method = "normal", width = 3, items = recipe}) result, new = minetest.get_craft_result({method = "normal", width = 3, items = recipe})
@ -41,9 +39,7 @@ function autocraft(inventory, pos)
end end
end end
if recipeUnchanged then if recipeUnchanged then
--print("autocrafter recipe unchanged")
else else
--print("autocrafter recipe changed at pos("..pos.x..","..pos.y..","..pos.z..")")
for i = 1, 9 do for i = 1, 9 do
recipe_last[i] = recipe[i] recipe_last[i] = recipe[i]
recipe[i] = ItemStack({name = recipe[i]:get_name(), count = 1}) recipe[i] = ItemStack({name = recipe[i]:get_name(), count = 1})

View File

@ -244,4 +244,3 @@ function tube_autoroute(pos)
meta:from_table(meta0) meta:from_table(meta0)
local nctr = minetest.get_node(pos) local nctr = minetest.get_node(pos)
end end

View File

@ -15,8 +15,7 @@ if mesecon then
} }
} }
end end
print("pipereceptor_on = "..dump(pipereceptor_on))
print("pipereceptor_off = "..dump(pipereceptor_off))
pipes_devicelist = { pipes_devicelist = {
"pump", "pump",
"valve", "valve",