summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 2d4a2e3..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..")";
@@ -733,7 +733,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 = {
@@ -858,7 +858,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 = {