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 9cf7c5a..4f37115 100644
--- a/init.lua
+++ b/init.lua
@@ -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 = {