diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-06-08 13:50:08 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-06-08 13:50:08 +0200 |
commit | d61c2145a0f28438b0f85345bc7808ce0b6161c6 (patch) | |
tree | 98a7df9e1205babfacf90ccabfd4d034ef9c9ebb /advtrains_train_industrial/init.lua | |
parent | 15be5006627f7ff1b81dc376ebf12ea7a0a7f86a (diff) | |
parent | e57c1eaa7fed32d12a3427735bda500e38006686 (diff) | |
download | advtrains-d61c2145a0f28438b0f85345bc7808ce0b6161c6.tar.gz advtrains-d61c2145a0f28438b0f85345bc7808ce0b6161c6.tar.bz2 advtrains-d61c2145a0f28438b0f85345bc7808ce0b6161c6.zip |
Merge branch 'wagon_prop_formspec' of https://github.com/Montandalar/advtrains
Diffstat (limited to 'advtrains_train_industrial/init.lua')
-rw-r--r-- | advtrains_train_industrial/init.lua | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/advtrains_train_industrial/init.lua b/advtrains_train_industrial/init.lua index 64a98b8..4d64615 100644 --- a/advtrains_train_industrial/init.lua +++ b/advtrains_train_industrial/init.lua @@ -90,12 +90,7 @@ 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, pname, invname) - return "size[8,11]".. - "list["..invname..";box;0,0;8,3;]".. - "list[current_player;main;0,5;8,4;]".. - "listring[]" - end, + get_inventory_formspec = advtrains.standard_inventory_formspec, inventory_list_sizes = { box=8*3, }, @@ -111,12 +106,7 @@ 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, pname, invname) - return "size[8,11]".. - "list["..invname..";box;0,0;8,3;]".. - "list[current_player;main;0,5;8,4;]".. - "listring[]" - end, + get_inventory_formspec = advtrains.standard_inventory_formspec, inventory_list_sizes = { box=8*3, }, |