lower capacity of freight cars

master
orwell96 2017-06-08 11:13:53 +02:00
parent 3abd0f0e34
commit af46d180f8
2 changed files with 9 additions and 9 deletions

View File

@ -53,12 +53,12 @@ advtrains.register_wagon("wagon_tank", {
has_inventory = true, has_inventory = true,
get_inventory_formspec = function(self) get_inventory_formspec = function(self)
return "size[8,11]".. return "size[8,11]"..
"list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]".. "list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,3;]"..
"list[current_player;main;0,7;8,4;]".. "list[current_player;main;0,5;8,4;]"..
"listring[]" "listring[]"
end, end,
inventory_list_sizes = { inventory_list_sizes = {
box=8*6, box=8*3,
}, },
}, S("Industrial tank wagon"), "advtrains_wagon_tank_inv.png") }, S("Industrial tank wagon"), "advtrains_wagon_tank_inv.png")
advtrains.register_wagon("wagon_wood", { advtrains.register_wagon("wagon_wood", {
@ -74,11 +74,11 @@ advtrains.register_wagon("wagon_wood", {
has_inventory = true, has_inventory = true,
get_inventory_formspec = function(self) get_inventory_formspec = function(self)
return "size[8,11]".. return "size[8,11]"..
"list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]".. "list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,3;]"..
"list[current_player;main;0,7;8,4;]".. "list[current_player;main;0,5;8,4;]"..
"listring[]" "listring[]"
end, end,
inventory_list_sizes = { inventory_list_sizes = {
box=8*6, box=8*3,
}, },
}, S("Industrial wood wagon"), "advtrains_wagon_wood_inv.png") }, S("Industrial wood wagon"), "advtrains_wagon_wood_inv.png")

View File

@ -197,12 +197,12 @@ advtrains.register_wagon("wagon_box", {
has_inventory = true, has_inventory = true,
get_inventory_formspec = function(self) get_inventory_formspec = function(self)
return "size[8,11]".. return "size[8,11]"..
"list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]".. "list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,3;]"..
"list[current_player;main;0,7;8,4;]".. "list[current_player;main;0,5;8,4;]"..
"listring[]" "listring[]"
end, end,
inventory_list_sizes = { inventory_list_sizes = {
box=8*6, box=8*3,
}, },
}, S("Box Wagon"), "advtrains_wagon_box_inv.png") }, S("Box Wagon"), "advtrains_wagon_box_inv.png")