summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSokomine <wegwerf@anarres.dyndns.org>2018-07-21 04:57:08 +0200
committerSokomine <wegwerf@anarres.dyndns.org>2018-07-21 04:57:08 +0200
commitf4bd77eb011515fd8a2a06f30000d33091dd7ceb (patch)
tree397a64d03cfa8ebd6b28bb101a7845aa80015457
parenta046cfe221633e38010b0e7a01262ff27b5fdc2e (diff)
made a variable local
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
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..")";