mirror of
https://github.com/minetest-mods/technic.git
synced 2025-01-03 03:07:36 +01:00
tool workshop shouldn't ever allow stack splitting
(tools don't stack :) )
This commit is contained in:
parent
ceead2b5ab
commit
64f38f423e
@ -103,8 +103,7 @@ minetest.register_node("technic:tool_workshop", {
|
|||||||
allow_metadata_inventory_take = technic.machine_inventory_take,
|
allow_metadata_inventory_take = technic.machine_inventory_take,
|
||||||
tube = {
|
tube = {
|
||||||
can_insert = function (pos, node, stack, direction)
|
can_insert = function (pos, node, stack, direction)
|
||||||
local onestack = stack:peek_item(1)
|
return minetest.get_meta(pos):get_inventory():room_for_item("src", stack)
|
||||||
return minetest.get_meta(pos):get_inventory():room_for_item("src", onestack)
|
|
||||||
end,
|
end,
|
||||||
insert_object = function (pos, node, stack, direction)
|
insert_object = function (pos, node, stack, direction)
|
||||||
return minetest.get_meta(pos):get_inventory():add_item("src", stack)
|
return minetest.get_meta(pos):get_inventory():add_item("src", stack)
|
||||||
|
Loading…
Reference in New Issue
Block a user