1
0
mirror of https://github.com/Sokomine/replacer.git synced 2025-07-04 00:51:23 +02:00

got rid of minetest.env

This commit is contained in:
Sokomine
2017-12-08 22:25:35 +01:00
parent 062b39f4f8
commit 9c80920cd8
2 changed files with 7 additions and 7 deletions

View File

@ -101,7 +101,7 @@ replacer.inspect = function( itemstack, user, pointed_thing, mode, show_receipe
end
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 ) then
minetest.chat_send_player( name, "Error: Target node not yet loaded. Please wait a moment for the server to catch up.");