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

Fix DebugLevelSource being off-by-one on grid height #226

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

embeddedt
Copy link
Member

Fix the debug level missing a row compared to vanilla. The cast previously made the ceil have no effect as it was done after integer division occured - meaning the incoming value would already be a (floored) integer. This meant the height was one less than it should have been.

The new version places the casts in the same location as vanilla, and fixes the issue.

@marchermans marchermans merged commit 0067946 into neoforged:1.20.x Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants