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

Added FillingContainer class. #102

Merged
merged 5 commits into from
Jun 23, 2024
Merged

Conversation

raonygamer
Copy link
Contributor

Added FillingContainer class to be able to work with filling containers (chests/shulker boxes/ender chests) etc

Added FillingContainer class to be able to work with filling containers (chests/shulker boxes/ender chests) etc
mPlayer(player)
{
//workaround to place the original game vtable on the class instance even in a implemented constructor
*reinterpret_cast<void**>(this) = FillingContainer_vtable;
Copy link
Owner

Choose a reason for hiding this comment

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

Why is this needed? If you're planning to construct from this, doing asm definitions for this should be good?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

forgot to remove xD

@FrederoxDev FrederoxDev merged commit 8a2c371 into FrederoxDev:main Jun 23, 2024
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