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

Prevent creating a placed item tile entity if the associated item is null #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Alexdoru
Copy link
Member

Doing this to remove the PlacedItem in the world if the associated item got removed from the game, for example when you remove a mod

I am not familiar with tile entities but from looking at the vanilla code it seems that throwing an exception in the readFromNBT method is the right way to not load a certain tile entity

@Dream-Master Dream-Master requested a review from a team October 11, 2024 08:03
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.

1 participant