aboutsummaryrefslogtreecommitdiff
path: root/advtrains/wagons.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-01-03 18:48:00 +0100
committerorwell96 <mono96.mml@gmail.com>2017-01-03 18:48:00 +0100
commita9d43ce2ca3bfd703428d248c0839e53ffd76f27 (patch)
tree761a6ef8f693c01702e3be024fdf3e38624adcc2 /advtrains/wagons.lua
parentcc6cf09ac83efa0bfaaecddb2a8fe49d136cca57 (diff)
downloadadvtrains-a9d43ce2ca3bfd703428d248c0839e53ffd76f27.tar.gz
advtrains-a9d43ce2ca3bfd703428d248c0839e53ffd76f27.tar.bz2
advtrains-a9d43ce2ca3bfd703428d248c0839e53ffd76f27.zip
add API documentation
Diffstat (limited to 'advtrains/wagons.lua')
-rw-r--r--advtrains/wagons.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua
index fdd2b2e..495f914 100644
--- a/advtrains/wagons.lua
+++ b/advtrains/wagons.lua
@@ -73,7 +73,7 @@ function wagon:on_activate(sd_uid, dtime_s)
end
if self.custom_on_activate then
- self:custom_on_activate(staticdata_table, dtime_s)
+ self:custom_on_activate(dtime_s)
end
end
@@ -460,7 +460,7 @@ function wagon:show_get_on_form(pname)
if not self.initialized then return end
if #self.seats==0 then
if self.has_inventory and self.get_inventory_formspec then
- minetest.show_formspec(pname, "advtrains_inv_"..self.unique_id, self:get_inventory_formspec())
+ minetest.show_formspec(pname, "advtrains_inv_"..self.unique_id, self:get_inventory_formspec(pname))
end
return
end
@@ -487,7 +487,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if wagon.is_wagon and wagon.initialized and wagon.unique_id==uid then
if fields.inv then
if wagon.has_inventory and wagon.get_inventory_formspec then
- minetest.show_formspec(player:get_player_name(), "advtrains_inv_"..uid, wagon:get_inventory_formspec())
+ minetest.show_formspec(player:get_player_name(), "advtrains_inv_"..uid, wagon:get_inventory_formspec(player:get_player_name()))
end
elseif fields.seat then
local val=minetest.explode_textlist_event(fields.seat)