Calling InteractionKeyMappingTriggered event fires train controls block interaction twice #6901
Labels
area: compatibility
Issue only happens when other mods are present
status: confirmed
Issue's details are known, it is consistently reproducible, and it needs a fix
type: bug
Issue where something isn't working
Description
Hello, I'm a developer from Epic Fight. I got a report for a weird issue when trying to control the train from Create.
Epic-Fight/epicfightmod#1771
As you can see in the video the player can't control the train because it acts like it pressed twice. I found it was because I called InteractionKeyMappingTriggered event for my keybind.
I have a keybind for casting guard skill which has the default value as mouse right button. The event has
KeyMapping
instance that you can distinguish if the event is called by the vanilla side or mine. Please let me know if there are any ways to fix this issue both on my side or on your end. Thanks for reading.Game Log
https://mclo.gs/DXO1jzC
Debug Information
No response
The text was updated successfully, but these errors were encountered: