mirror of
https://github.com/Sokomine/chesttools.git
synced 2025-01-09 09:30:35 +01:00
renamed obsolete functions to new name
This commit is contained in:
parent
e7a1f8fd86
commit
06f4befded
6
init.lua
6
init.lua
@ -53,12 +53,12 @@ if( minetest.get_modpath( 'pipeworks' )) then
|
|||||||
tubedevice = 1, tubedevice_receiver = 1 };
|
tubedevice = 1, tubedevice_receiver = 1 };
|
||||||
chesttools.chest_add.tube = {
|
chesttools.chest_add.tube = {
|
||||||
insert_object = function(pos, node, stack, direction)
|
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()
|
local inv = meta:get_inventory()
|
||||||
return inv:add_item("main", stack)
|
return inv:add_item("main", stack)
|
||||||
end,
|
end,
|
||||||
can_insert = function(pos, node, stack, direction)
|
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()
|
local inv = meta:get_inventory()
|
||||||
return inv:room_for_item("main", stack)
|
return inv:room_for_item("main", stack)
|
||||||
end,
|
end,
|
||||||
@ -512,7 +512,7 @@ minetest.register_node( 'chesttools:shared_chest', {
|
|||||||
local name = user:get_player_name();
|
local name = user:get_player_name();
|
||||||
|
|
||||||
local pos = minetest.get_pointed_thing_position( pointed_thing, mode );
|
local pos = minetest.get_pointed_thing_position( pointed_thing, mode );
|
||||||
local node = minetest.env:get_node_or_nil( pos );
|
local node = minetest.get_node_or_nil( pos );
|
||||||
|
|
||||||
if( node == nil or not( node.name )) then
|
if( node == nil or not( node.name )) then
|
||||||
return nil;
|
return nil;
|
||||||
|
Loading…
Reference in New Issue
Block a user