Closed oversword closed 2 years ago
These changes allow this MR to work https://github.com/BlockySurvival/locked_travelnet/pull/5/files?diff=unified&w=1
Which brings locked travelnets up to speed with the latest travelnet behaviour
(P.S. I saw all my travelnets get wiped while writing this, it may just be because I was switching back and forth between versions, but don't test this anywhere with valuable data unless you make a backup of the data first)
I needed to make a few changes to make the new version of the mod compatible with
locked_travlenets
These changes are not specific to
locked_travlenets
and should help with extending the travelnet mod in general.None of these changes should change the current behaviour, just make it easier for people to modify the behaviour.
Changes:
travelnet.form_input_handler
is called, this allows someone to overridetravelnet.on_receive_fields
without needing to have access to the pos datatravelnet.actions.end_input
every time the form is closed, this lets you overridetravelnet.actions.end_input
as a way of hooking into the formspec closing eventend_input