debug prints removed
This commit is contained in:
parent
71e12528e2
commit
dc7777652a
@ -96,7 +96,6 @@ local function filter_settings(pos)
|
||||
ItemFilter = ItemFilter,
|
||||
OpenPorts = OpenPorts,
|
||||
}
|
||||
print("ItemFilter = "..dump(ItemFilter), "\nOpenPorts = "..dump(OpenPorts))
|
||||
end
|
||||
|
||||
-- Return filter table and list of open ports.
|
||||
@ -197,7 +196,6 @@ local function distributing(pos, inv, trd, mem)
|
||||
if item_filter[item_name] then
|
||||
-- Push items based on filter
|
||||
num_pushed = push_item(pos, item_filter[item_name], item_name, num_to_push, mem)
|
||||
print("num_pushed",num_pushed, "num_to_push", num_to_push)
|
||||
end
|
||||
if num_pushed == 0 and #open_ports > 0 then
|
||||
-- Push items based on open ports
|
||||
@ -213,7 +211,6 @@ local function distributing(pos, inv, trd, mem)
|
||||
end
|
||||
end
|
||||
|
||||
print("sum_num_pushed",sum_num_pushed)
|
||||
if num_pushed == 0 then
|
||||
trd.State:blocked(pos, mem)
|
||||
else
|
||||
|
@ -64,7 +64,6 @@ end
|
||||
local function on_rightclick(pos, node, clicker)
|
||||
local mem = tubelib2.get_mem(pos)
|
||||
if not minetest.is_protected(pos, clicker:get_player_name()) then
|
||||
print("on_rightclick", TRD(pos).State:is_active(mem), mem.techage_state)
|
||||
if TRD(pos).State:is_active(mem) then
|
||||
TRD(pos).State:stop(pos, mem)
|
||||
else
|
||||
|
@ -93,7 +93,6 @@ minetest.register_node("techage:construction_board", {
|
||||
if minetest.is_protected(pos, player:get_player_name()) then
|
||||
return
|
||||
end
|
||||
print(dump(fields))
|
||||
local meta = minetest.get_meta(pos)
|
||||
local idx = meta:get_int("help_idx")
|
||||
idx = techage.range(idx, 1, #Recipes)
|
||||
|
@ -367,7 +367,6 @@ end
|
||||
function NodeStates:state_button_event(pos, mem, fields)
|
||||
if fields.state_button ~= nil then
|
||||
local state = mem.techage_state
|
||||
print("on_receive_fields", state)
|
||||
if state == STOPPED or state == STANDBY or state == BLOCKED then
|
||||
self:start(pos, mem)
|
||||
elseif state == RUNNING or state == FAULT then
|
||||
|
@ -130,12 +130,10 @@ end
|
||||
|
||||
-- Starts the overall power consumption and depending on that turns all nodes on/off
|
||||
local function start_network_power_consumption(pos, in_dir)
|
||||
print("start_network_power_consumption", S(pos), in_dir)
|
||||
Route = {}
|
||||
local sum = power_consumption(pos, in_dir)
|
||||
Route = {}
|
||||
turn_on(pos, in_dir, sum)
|
||||
print("consumption = "..sum)
|
||||
end
|
||||
|
||||
--
|
||||
|
@ -141,7 +141,6 @@ end
|
||||
|
||||
techage.register_node("techage:sieve0", {"techage:sieve1", "techage:sieve2", "techage:sieve3"}, {
|
||||
on_push_item = function(pos, in_dir, stack)
|
||||
print("on_push_item")
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
if inv:room_for_item("src", stack) then
|
||||
|
@ -53,7 +53,6 @@ local function push_item(pos, inv, meta)
|
||||
if not inv:is_empty("main") then
|
||||
local stack = inv:get_stack("main", 1)
|
||||
local taken = stack:take_item(1)
|
||||
print("neighbour_push_items")
|
||||
if techage.neighbour_push_items(pos, meta:get_int("push_dir"), taken) then
|
||||
inv:set_stack("main", 1, stack)
|
||||
end
|
||||
@ -61,7 +60,6 @@ local function push_item(pos, inv, meta)
|
||||
end
|
||||
|
||||
local function node_timer(pos, elapsed)
|
||||
print("node_timer")
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
if inv then
|
||||
|
Loading…
Reference in New Issue
Block a user