mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-05 06:53:52 +01:00
correct injector inventory handling by tubes
This commit is contained in:
parent
ce40d1cfb8
commit
7ed1aa9398
@ -66,7 +66,15 @@ minetest.register_node("technic:injector", {
|
|||||||
tiles = {"technic_injector_top.png", "technic_injector_bottom.png", "technic_injector_side.png",
|
tiles = {"technic_injector_top.png", "technic_injector_bottom.png", "technic_injector_side.png",
|
||||||
"technic_injector_side.png", "technic_injector_side.png", "technic_injector_side.png"},
|
"technic_injector_side.png", "technic_injector_side.png", "technic_injector_side.png"},
|
||||||
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, tubedevice=1, tubedevice_receiver=1},
|
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, tubedevice=1, tubedevice_receiver=1},
|
||||||
tube = {connect_sides={bottom=1}},
|
tube = {
|
||||||
|
can_insert = function(pos, node, stack, direction)
|
||||||
|
return minetest.get_meta(pos):get_inventory():room_for_item("main",stack)
|
||||||
|
end,
|
||||||
|
insert_object = function(pos, node, stack, direction)
|
||||||
|
return minetest.get_meta(pos):get_inventory():add_item("main",stack)
|
||||||
|
end,
|
||||||
|
connect_sides = {left=1, right=1, front=1, back=1, top=1, bottom=1},
|
||||||
|
},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user