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 crash on setblock #17

Merged
merged 1 commit into from
Apr 17, 2021
Merged

Fix crash on setblock #17

merged 1 commit into from
Apr 17, 2021

Conversation

Jack-Papel
Copy link
Contributor

@Jack-Papel Jack-Papel commented Apr 16, 2021

There was no issue made about this, but before these changes, the game would crash on /setblock (For example, /setblock ~ ~ ~ the_aether:blue_portal would crash when there was no glowstone below it). Prior to this update, a StackOverflowError would occur. Now, getPortalBase() will stop looping when the Y value of the block being searched is below zero, since there are no more blocks below and thus no reason to continue looping into the void.

There was no issue made about this, but it crashes on setblock (For example, the_aether:blue_portal when there is no glowstone below it). Previously to this update, a StackOverflowError would occur. Now, it will stop looping when the Y value is below zero, since there are no more blocks below and thus no reason to continue looping into the void.
@kyrptonaught kyrptonaught merged commit ec4fa62 into kyrptonaught:main Apr 17, 2021
kyrptonaught added a commit that referenced this pull request Apr 17, 2021
…ck-Papel). Also makes CustomPortalBlock:getPortalBase non-static, allowing custom portal blocks to overwrite its logic
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