diff options
author | orwell96 <orwell@bleipb.de> | 2018-12-10 22:41:02 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-12-10 23:06:00 +0100 |
commit | 2ec68d7855e56e13779c651cd7cb5f21fc826636 (patch) | |
tree | ae8f6fda722c240597a1dcf51e26dcb56f6b0ef8 /advtrains_train_industrial | |
parent | 33baf3b05c2a8b7cffdf67528c48ecad0c79ce89 (diff) | |
download | advtrains-2ec68d7855e56e13779c651cd7cb5f21fc826636.tar.gz advtrains-2ec68d7855e56e13779c651cd7cb5f21fc826636.tar.bz2 advtrains-2ec68d7855e56e13779c651cd7cb5f21fc826636.zip |
Change get_inventory_formspec API - add invname parameter
Diffstat (limited to 'advtrains_train_industrial')
-rw-r--r-- | advtrains_train_industrial/init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/advtrains_train_industrial/init.lua b/advtrains_train_industrial/init.lua index c654449..ed6c370 100644 --- a/advtrains_train_industrial/init.lua +++ b/advtrains_train_industrial/init.lua @@ -90,9 +90,9 @@ advtrains.register_wagon("wagon_tank", { collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, drops={"default:steelblock 4"}, has_inventory = true, - get_inventory_formspec = function(self) + get_inventory_formspec = function(self, pname, invname) return "size[8,11]".. - "list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,3;]".. + "list["..invname..";box;0,0;8,3;]".. "list[current_player;main;0,5;8,4;]".. "listring[]" end, @@ -111,9 +111,9 @@ advtrains.register_wagon("wagon_wood", { collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, drops={"default:steelblock 4"}, has_inventory = true, - get_inventory_formspec = function(self) + get_inventory_formspec = function(self, pname, invname) return "size[8,11]".. - "list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,3;]".. + "list["..invname..";box;0,0;8,3;]".. "list[current_player;main;0,5;8,4;]".. "listring[]" end, |