diff --git a/init.lua b/init.lua index ddb7478..e1f41b9 100644 --- a/init.lua +++ b/init.lua @@ -200,7 +200,7 @@ replacer.replace = function( itemstack, user, pointed_thing, mode ) -- in survival mode, the player has to provide the node he wants to place - if( not(minetest.setting_getbool("creative_mode") ) + if( not(minetest.settings:get_bool("creative_mode") ) and not( minetest.check_player_privs( name, {creative=true}))) then -- players usually don't carry dirt_with_grass around; it's safe to assume normal dirt here diff --git a/inspect.lua b/inspect.lua index b2a359d..6c038a3 100644 --- a/inspect.lua +++ b/inspect.lua @@ -92,7 +92,7 @@ replacer.inspect = function( itemstack, user, pointed_thing, mode, show_receipe end end - text = text..' at '..minetest.pos_to_string( ref:getpos() ); + text = text..' at '..minetest.pos_to_string( ref:get_pos() ); minetest.chat_send_player( name, text ); return nil; elseif( pointed_thing.type ~= 'node' ) then