Replaced deprecated functions.
parent
6b0e2be273
commit
0113f01b62
|
@ -130,7 +130,7 @@ end
|
|||
|
||||
-- on_construct
|
||||
craft_guide.on_construct = function(pos)
|
||||
local meta = minetest.env:get_meta(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("output", 1)
|
||||
inv:set_size("build", 3*3)
|
||||
|
@ -145,7 +145,7 @@ end
|
|||
|
||||
-- on_receive_fields
|
||||
craft_guide.on_receive_fields = function(pos, formname, fields, player)
|
||||
local meta = minetest.env:get_meta(pos);
|
||||
local meta = minetest.get_meta(pos);
|
||||
|
||||
local inv = meta:get_inventory()
|
||||
local size = inv:get_size("main",1)
|
||||
|
@ -389,7 +389,7 @@ end
|
|||
-- allow_metadata_inventory_move
|
||||
craft_guide.allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
|
||||
local meta = minetest.env:get_meta(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
if from_list == "output" and to_list == "bin" then
|
||||
craft_guide.update_recipe(meta, player, inv:get_stack(from_list, from_index))
|
||||
|
|
Loading…
Reference in New Issue