aboutsummaryrefslogtreecommitdiff
path: root/advtrains_train_steam/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains_train_steam/init.lua')
-rwxr-xr-xadvtrains_train_steam/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains_train_steam/init.lua b/advtrains_train_steam/init.lua
index 2afbe16..4b60d53 100755
--- a/advtrains_train_steam/init.lua
+++ b/advtrains_train_steam/init.lua
@@ -208,9 +208,9 @@ advtrains.register_wagon("wagon_box", {
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,