add errors #13
1 changed files with 6 additions and 6 deletions
|
@ -275,7 +275,7 @@ minetest.register_node("basic_machines:battery_0", {
|
||||||
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("fuel", stack)
|
return inv:add_item("upgrade", 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)
|
||||||
|
@ -283,9 +283,9 @@ minetest.register_node("basic_machines:battery_0", {
|
||||||
if meta:get_int("split_material_stacks") == 1 then
|
if meta:get_int("split_material_stacks") == 1 then
|
||||||
stack = stack:peek_item(1)
|
stack = stack:peek_item(1)
|
||||||
end
|
end
|
||||||
return inv:room_for_item("fuel", stack)
|
return inv:room_for_item("upgrade", stack)
|
||||||
end,
|
end,
|
||||||
input_inventory = "upgrade",
|
input_inventory = "fuel",
|
||||||
connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1}
|
connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -410,7 +410,7 @@ minetest.register_node("basic_machines:generator", {
|
||||||
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("fuel", stack)
|
return inv:add_item("upgrade", 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)
|
||||||
|
@ -418,9 +418,9 @@ minetest.register_node("basic_machines:generator", {
|
||||||
if meta:get_int("split_material_stacks") == 1 then
|
if meta:get_int("split_material_stacks") == 1 then
|
||||||
stack = stack:peek_item(1)
|
stack = stack:peek_item(1)
|
||||||
end
|
end
|
||||||
return inv:room_for_item("fuel", stack)
|
return inv:room_for_item("upgrade", stack)
|
||||||
end,
|
end,
|
||||||
input_inventory = "upgrade",
|
input_inventory = "fuel",
|
||||||
connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1}
|
connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue