From 013201fe8f3a69887bce8ae237fb6e8333066a1e Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 13 Nov 2016 16:47:59 +0000 Subject: [PATCH] Rename _getFS_ to _buildFormspec_ --- smartfs.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/smartfs.lua b/smartfs.lua index 6fe016e..f3d0d22 100644 --- a/smartfs.lua +++ b/smartfs.lua @@ -85,7 +85,7 @@ function smartfs.add_to_inventory(form, icon, title) get_formspec = function(player, formspec) local name = player:get_player_name() local opened = smartfs._show_(form, name, nil, true) - return {formspec = opened:_getFS_(false)} + return {formspec = opened:_buildFormspec_(false)} end }) return true @@ -97,7 +97,7 @@ function smartfs.add_to_inventory(form, icon, title) if formname == "" and fields[form.name] then local name = player:get_player_name() local opened = smartfs._show_(form, name, nil, true) - inventory_plus.set_inventory_formspec(player, opened:_getFS_(true)) + inventory_plus.set_inventory_formspec(player, opened:_buildFormspec_(true)) end end) return true @@ -166,7 +166,7 @@ function smartfs._makeState_(form, newplayer, params, is_inv, nodepos) size = function(self,w,h) self._size = {w=w,h=h} end, - _getFS_ = function(self,size) + _buildFormspec_ = function(self,size) local res = "" if self._size and size then res = "size["..self._size.w..","..self._size.h.."]" @@ -177,7 +177,7 @@ function smartfs._makeState_(form, newplayer, params, is_inv, nodepos) return res end, _show_ = function(self) - local res = self:_getFS_(true) + local res = self:_buildFormspec_(true) if self.location.type == "inventory" then if unified_inventory then unified_inventory.set_inventory_formspec(minetest.get_player_by_name(self.location.player), self.def.name)