Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VirtualInput] Fix subticks not being recorded in GuiScreens #225

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

ScribbleTAS
Copy link
Member

What a weird oversight

Up to now, subticks were not recorded in Gui screens.
Reason was that nextTickKeyboard (and Mouse) is called twice when a GuiScreen is open.

nextTickKeyboard adds the current keyboard to the PlaybackController, where it will be recorded at the end of the tick,
then clears the subticks of that keyboard.

By calling the method twice, a keyboard without subticks overwrites the keyboard in the PlaybackController, making it record a subtickless keyboard to the inputs.

@ScribbleTAS ScribbleTAS added Bug Something isn't working Core Issue relates to core concepts Gui Issue relates to guis labels Dec 25, 2024
@ScribbleTAS ScribbleTAS self-assigned this Dec 25, 2024
@ScribbleTAS ScribbleTAS merged commit 5f39737 into MinecraftTAS:develop Dec 25, 2024
2 checks passed
@ScribbleTAS ScribbleTAS deleted the fix/subticks branch December 25, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Core Issue relates to core concepts Gui Issue relates to guis
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants