Merge pull request #1 from Montandalar/master
Fix drop for engine and inv formspec
This commit is contained in:
commit
aba375634e
9
init.lua
9
init.lua
@ -71,7 +71,7 @@ advtrains.register_wagon("engine_transib", {
|
||||
wagon_span=3.4,
|
||||
is_locomotive=true,
|
||||
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
|
||||
drops={"advtrains:transib"},
|
||||
drops={"advtrains:engine_transib"},
|
||||
}, S("transib "), "advtrains_engine_transib_inv.png")
|
||||
|
||||
advtrains.register_wagon("wagon_coal", {
|
||||
@ -85,12 +85,7 @@ advtrains.register_wagon("wagon_coal", {
|
||||
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
|
||||
drops={"advtrains:wagon_coal"},
|
||||
has_inventory = true,
|
||||
get_inventory_formspec = function(self)
|
||||
return "size[8,11]"..
|
||||
"list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]"..
|
||||
"list[current_player;main;0,7;8,4;]"..
|
||||
"listring[]"
|
||||
end,
|
||||
get_inventory_formspec = advtrains.standard_inventory_formspec,
|
||||
inventory_list_sizes = {
|
||||
box=8*6,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user