diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -458,7 +458,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..")"; @@ -741,7 +741,7 @@ minetest.register_node("apartment:apartment_free", { paramtype = "light", paramtype2 = "facedir", light_source = 14, - groups = {cracky=2}, + groups = {cracky=2,not_in_creative_inventory=1}, node_box = { type = "fixed", fixed = { @@ -871,7 +871,7 @@ minetest.register_node("apartment:apartment", { paramtype = "light", paramtype2 = "facedir", light_source = 14, - groups = {cracky=2}, + groups = {cracky=2,not_in_creative_inventory=1}, node_box = { type = "fixed", fixed = { |