From f4bd77eb011515fd8a2a06f30000d33091dd7ceb Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sat, 21 Jul 2018 04:57:08 +0200 Subject: made a variable local --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index dbbfb27..6425fb5 100644 --- a/init.lua +++ b/init.lua @@ -455,7 +455,7 @@ apartment.rent = function( pos, pname, oldmetadata, actor ) -- change the actual owner -- set a fitting infotext local itext = 'Object in Ap. '..descr..' ('..rented_by..')'; - n = minetest.get_node( {x=px, y=py, z=pz} ); + local n = minetest.get_node( {x=px, y=py, z=pz} ); if( n.name == 'default:chest_locked' ) then if( pname == '' ) then itext = "Locked Chest (owned by "..original_owner..")"; -- cgit v1.2.3