Vanessa Dannenberg
2020-05-27 befe3ecc86f046310ec0a5c24f82acea2ad13d9d
technic_chests/common.lua
@@ -1,4 +1,3 @@
technic.chests.groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
      tubedevice=1, tubedevice_receiver=1}
technic.chests.groups_noinv = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
@@ -13,6 +12,9 @@
   can_insert = function(pos, node, stack, direction)
      local meta = minetest.get_meta(pos)
      local inv = meta:get_inventory()
      if meta:get_int("splitstacks") == 1 then
         stack = stack:peek_item(1)
      end
      return inv:room_for_item("main",stack)
   end,
   input_inventory = "main",
@@ -26,7 +28,9 @@
end
local function inv_change(pos, count, player)
   if not default.can_interact_with_node(player, pos) then
   -- Skip check for pipeworks (fake player)
   if minetest.is_player(player) and
         not default.can_interact_with_node(player, pos) then
      return 0
   end
   return count