1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-18 15:40:25 +02:00

Updated Mesecons and Pipeworks mods

- Updated pipeworks because of a bug related to vacuuming tubes, which has
  caused at least 5 crashs.
- Updated mesecons too, because the mods are often used together.
This commit is contained in:
LeMagnesium
2015-01-04 13:52:47 +01:00
parent 6ddddb2017
commit ef93a5ca8a
6 changed files with 22 additions and 51 deletions

View File

@ -116,12 +116,12 @@ minetest.override_item("default:chest_locked", {
groups = {choppy = 2, oddly_breakable_by_hand = 2, tubedevice = 1, tubedevice_receiver = 1},
tube = {
insert_object = function(pos, node, stack, direction)
local meta = minetest.env:get_meta(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
return inv:add_item("main", stack)
end,
can_insert = function(pos, node, stack, direction)
local meta = minetest.env:get_meta(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
return inv:room_for_item("main", stack)
end,