summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2013-12-03 15:30:09 -0500
committerShadowNinja <shadowninja@minetest.net>2013-12-03 15:30:09 -0500
commit47b0b59884488ede2d66f937ed084595e42256f5 (patch)
tree8e2c0b9fbbf1ecac5811d8b60f35f9812fcb6784
parent7a3cd495972f2dc399d7af7f596a6d9a4a5c728b (diff)
Generators don't send items
-rw-r--r--technic/machines/register/generator.lua11
1 files changed, 3 insertions, 8 deletions
diff --git a/technic/machines/register/generator.lua b/technic/machines/register/generator.lua
index 0b04815..0d2ecd3 100644
--- a/technic/machines/register/generator.lua
+++ b/technic/machines/register/generator.lua
@@ -4,7 +4,7 @@ local tube = {
insert_object = function(pos, node, stack, direction)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
- return inv:add_item("src",stack)
+ return inv:add_item("src", stack)
end,
can_insert = function(pos, node, stack, direction)
local meta = minetest.get_meta(pos)
@@ -17,7 +17,7 @@ local tube = {
function technic.register_generator(data)
local tier = data.tier
local ltier = string.lower(tier)
-
+
local groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2}
local active_groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1}
if data.tube then
@@ -26,7 +26,7 @@ function technic.register_generator(data)
active_groups.tubedevice = 1
active_groups.tubedevice_receiver = 1
end
-
+
local generator_formspec =
"invsize[8,9;]"..
"label[0,0;"..S("%s Generator"):format(tier).."]"..
@@ -91,11 +91,6 @@ function technic.register_generator(data)
burn_time = burn_time - 1
meta:set_int("burn_time", burn_time)
end
- local tube_upgrade = 0, 0
- if data.tube then
- technic.handle_machine_pipeworks(pos, tube_upgrade)
- end
-
-- Burn another piece of fuel
if burn_time == 0 then
local inv = meta:get_inventory()