diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2016-10-23 16:57:22 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2016-10-23 16:57:22 +0200 |
commit | cd95fc79771124a8c0e6bbd9cbabce3650fc75da (patch) | |
tree | 1b9340b6978753a66520d3ab114294401dcb9efd | |
parent | 6fe6a28c21760dd609613c69564b3e008e0241c7 (diff) |
Sets the right formspec when renting automatically
-rw-r--r-- | init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |