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

Update Chest API for new merging logic. #2554

Merged
merged 3 commits into from Apr 8, 2020
Merged

Update Chest API for new merging logic. #2554

merged 3 commits into from Apr 8, 2020

Conversation

TheGlitch76
Copy link
Contributor

@TheGlitch76 TheGlitch76 commented Apr 6, 2020

SpongeAPI | SpongeCommon

Chests now have much better logic for finding its connected chest. This PR updates the mixin's logic to match Vanilla's.

Also, LockableLootTileEntity's customName property was moved to its superclass in Vanilla. This PR also updates the mixins to reflect that change.

container.set(Constants.TileEntity.LOCKABLE_CONTAINER_CUSTOM_NAME, this.customName);
}
return container;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure about this one myself?

@gabizou @Zidane

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind the horrible code selection zone lol

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the customName string doesn't exist here any more--it was moved in vanilla.

@Zidane Zidane merged commit 1efd9f1 into SpongePowered:api-8 Apr 8, 2020
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.

None yet

3 participants