aboutsummaryrefslogtreecommitdiff
path: root/advtrains_train_industrial/init.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-12-10 22:41:02 +0100
committerorwell96 <orwell@bleipb.de>2018-12-10 22:54:23 +0100
commit144e1fc4e01741f8cdd5a579ae84cde85c420d78 (patch)
tree957d7b9060c6c1cdb3b5187cdba73059fe16af4c /advtrains_train_industrial/init.lua
parent7a970dd4fab46461ee6dc43064b7972bac6304ea (diff)
downloadadvtrains-144e1fc4e01741f8cdd5a579ae84cde85c420d78.tar.gz
advtrains-144e1fc4e01741f8cdd5a579ae84cde85c420d78.tar.bz2
advtrains-144e1fc4e01741f8cdd5a579ae84cde85c420d78.zip
Change get_inventory_formspec API - add invname parameter
Diffstat (limited to 'advtrains_train_industrial/init.lua')
-rw-r--r--advtrains_train_industrial/init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/advtrains_train_industrial/init.lua b/advtrains_train_industrial/init.lua
index 62f4612..fcd85d1 100644
--- a/advtrains_train_industrial/init.lua
+++ b/advtrains_train_industrial/init.lua
@@ -92,9 +92,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.id..";box;0,0;8,3;]"..
+ "list["..invname..";box;0,0;8,3;]"..
"list[current_player;main;0,5;8,4;]"..
"listring[]"
end,
@@ -114,9 +114,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.id..";box;0,0;8,3;]"..
+ "list["..invname..";box;0,0;8,3;]"..
"list[current_player;main;0,5;8,4;]"..
"listring[]"
end,