diff options
Diffstat (limited to 'advtrains/wagons.lua')
-rw-r--r-- | advtrains/wagons.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua index d805bc6..71557fa 100644 --- a/advtrains/wagons.lua +++ b/advtrains/wagons.lua @@ -874,6 +874,7 @@ function wagon.prev_fc(data) end
function wagon.next_fc(data)
+ if not data.fc then return end
if data.fcrev then
wagon.prev_fc(data)
return
@@ -1127,7 +1128,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) wagon.show_wagon_properties({id=uid}, pname)
end
if fields.fcn then
- wagon.next_fc(data)
+ advtrains.step_fc(data)
wagon.show_wagon_properties({id=uid}, pname)
end
end
|