From 070aeb91f14065c408ed8c5193ac95c009495cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Sun, 9 Oct 2016 21:50:19 +0200 Subject: Forbids players from renting unlimited shops --- init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 9196a1e..b2e80a7 100644 --- a/init.lua +++ b/init.lua @@ -573,7 +573,9 @@ apartment.rent = function( pos, pname, oldmetadata, actor ) elseif( n.name == "bitchange:warehouse" ) then itext = "Warehouse ("..rented_by..")"; elseif (n.name == "smartshop:shop") then - itext = "Shop by " .. rented_by + itext = "Shop " .. rented_by + m:set_int("creative", 0) + m:set_int("type",1) elseif( n.name == "bitchange:shop" ) then if( m:get_string('title') and m:get_string('title') ~= '' ) then itext = "Exchange shop \""..( m:get_string('title')).."\" ("..rented_by..")"; -- cgit v1.2.3