8000 Fix portal create event block list by gecko10000 · Pull Request #12373 · PaperMC/Paper · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix portal create event block list #12373

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

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

gecko10000
Copy link
Contributor

The current logic for the portal gets the portal blocks incorrectly. It retrieves blocks in a diagonal line, as seen below (the two lime wool are part of this incorrect line). This PR changes the variable used to correctly align the blocks retrieved.
image

@gecko10000 gecko10000 requested a review from a team as a code owner April 1, 2025 07:03
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Apr 1, 2025
@Lulu13022002
Copy link
Contributor

That's fair, but generally this event call is weird because:

  1. the blocks around the portal are not really created at this point (i get why it's exposed but that will conflict with 2)
  2. plugins can't mutate the new block states here unlike the other call of the events

@gecko10000
Copy link
Contributor Author
gecko10000 commented Apr 1, 2025

My testing was for lighting an already-created (player-built) portal, meaning the obsidian already exists in that context. Looking at the code for exit portal generation, I can't seem to find where the obsidian is actually set in the level. In my case, though, I'm able to modify the obsidian because it's not part of the portal's creation.

@github-project-automation github-project-automation bot moved this from Awaiting review to Awaiting final testing in Paper PR Queue Apr 22, 2025
@lynxplay
Copy link
Contributor

Agree with lulu, the event is in a bit of a weird place there but yea, w/e, not part of this PR.

@lynxplay lynxplay merged commit 9cddf13 into PaperMC:main Apr 24, 2025
4 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting final testing to Merged in Paper PR Queue Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

4 participants
0