forked from minetest-mods/technic
Generators don't send items
This commit is contained in:
parent
7a3cd49597
commit
47b0b59884
@ -4,7 +4,7 @@ local tube = {
|
|||||||
insert_object = function(pos, node, stack, direction)
|
insert_object = function(pos, node, stack, direction)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
return inv:add_item("src",stack)
|
return inv:add_item("src", stack)
|
||||||
end,
|
end,
|
||||||
can_insert = function(pos, node, stack, direction)
|
can_insert = function(pos, node, stack, direction)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
@ -91,11 +91,6 @@ function technic.register_generator(data)
|
|||||||
burn_time = burn_time - 1
|
burn_time = burn_time - 1
|
||||||
meta:set_int("burn_time", burn_time)
|
meta:set_int("burn_time", burn_time)
|
||||||
end
|
end
|
||||||
local tube_upgrade = 0, 0
|
|
||||||
if data.tube then
|
|
||||||
technic.handle_machine_pipeworks(pos, tube_upgrade)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Burn another piece of fuel
|
-- Burn another piece of fuel
|
||||||
if burn_time == 0 then
|
if burn_time == 0 then
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
|
Loading…
Reference in New Issue
Block a user