This commit is contained in:
parent
25431781f8
commit
0fd8fe2e10
@ -165,8 +165,7 @@ local function sort_inventory(inv)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function get_receive_fields(name, data)
|
local function get_receive_fields(name, lname, data)
|
||||||
local lname = name:lower()
|
|
||||||
return function(pos, formname, fields, sender)
|
return function(pos, formname, fields, sender)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local page = "main"
|
local page = "main"
|
||||||
@ -306,7 +305,7 @@ function technic.chests:definition(name, lname, data)
|
|||||||
inv:set_size("main", data.width * data.height)
|
inv:set_size("main", data.width * data.height)
|
||||||
end,
|
end,
|
||||||
can_dig = self.can_dig,
|
can_dig = self.can_dig,
|
||||||
on_receive_fields = get_receive_fields(name, data),
|
on_receive_fields = get_receive_fields(name, lname, data),
|
||||||
on_metadata_inventory_move = self.on_inv_move,
|
on_metadata_inventory_move = self.on_inv_move,
|
||||||
on_metadata_inventory_put = self.on_inv_put,
|
on_metadata_inventory_put = self.on_inv_put,
|
||||||
on_metadata_inventory_take = self.on_inv_take,
|
on_metadata_inventory_take = self.on_inv_take,
|
||||||
|
Loading…
Reference in New Issue
Block a user