aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 8b14c30..15050c5 100644
--- a/init.lua
+++ b/init.lua
@@ -944,6 +944,8 @@ minetest.register_on_newplayer(function(player)
if (v.owner == '' and v.category == 'apartment') then
if (apartment.rent( v.pos, player:get_player_name(), nil, player )) then
player:moveto( v.pos, false);
+ local meta = minetest.get_meta( v.pos );
+ meta:set_string( 'formspec', apartment.get_formspec( pos, player ));
minetest.chat_send_player(player:get_player_name(),"Welcome to your new apartment. You can return here by saying '/aphome'")
break
end