From 144e1fc4e01741f8cdd5a579ae84cde85c420d78 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Mon, 10 Dec 2018 22:41:02 +0100 Subject: Change get_inventory_formspec API - add invname parameter --- advtrains_train_steam/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'advtrains_train_steam') diff --git a/advtrains_train_steam/init.lua b/advtrains_train_steam/init.lua index 3de714c..db2d087 100755 --- a/advtrains_train_steam/init.lua +++ b/advtrains_train_steam/init.lua @@ -211,9 +211,9 @@ advtrains.register_wagon("wagon_box", { collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, drops={"default:steelblock 1"}, has_inventory = true, - get_inventory_formspec = function(self) + get_inventory_formspec = function(self, pname, invname) return "size[8,11]".. - "list[detached:advtrains_wgn_"..self.id..";box;0,0;8,3;]".. + "list["..invname..";box;0,0;8,3;]".. "list[current_player;main;0,5;8,4;]".. "listring[]" end, -- cgit v1.2.3