Skip to content

Commit

Permalink
renamed obsolete functions to new name
Browse files Browse the repository at this point in the history
  • Loading branch information
Sokomine committed Mar 11, 2019
1 parent e7a1f8f commit 06f4bef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ if( minetest.get_modpath( 'pipeworks' )) then
tubedevice = 1, tubedevice_receiver = 1 };
chesttools.chest_add.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,
Expand Down Expand Up @@ -512,7 +512,7 @@ minetest.register_node( 'chesttools:shared_chest', {
local name = user:get_player_name();

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
return nil;
Expand Down

0 comments on commit 06f4bef

Please sign in to comment.