Skip to content

Conversation

@Y2Kwastaken
Copy link
Contributor

@Y2Kwastaken Y2Kwastaken commented Dec 26, 2025

This PR changes how we handle fake BlockEntity instances by no longer assigning them a Level/world. Instead of faking placement, we apply a small, targeted set of null-safety patches to ensure that server logic does not NPE when interacting with these fake block entities.

Previously, fake BlockEntity instances were given the player's world to get around internal assumptions. While somewhat functional, this caused some nasty unintended side effects around placement state, event broadcasting, and redstone/game events. The goal here is to keep fake block entities truly unplaced, while still allowing safe interaction paths where needed.

Largely this is cleanup, I highly encourage testing because this edits a pretty critical portion of the builder code even though it was only a few lines.

Fixes #13438

@Y2Kwastaken Y2Kwastaken changed the title Address Lectern spawning while utilizing MenuType API Move MenuType API to utilize true fake BlockEntity's Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting review

Development

Successfully merging this pull request may close these issues.

Lectern Block Entity appears in the world When utilizing The MenuType API

1 participant