Skip to content

Reload player object when invalid pointer - #11

Merged
TheDarkSword merged 1 commit into
TheDarkSword:masterfrom
TuinboonDev:master
Jan 3, 2026
Merged

TheDarkSword merged 1 commit into
TheDarkSword:masterfrom
TuinboonDev:master

Conversation

@TuinboonDev

@TuinboonDev TuinboonDev commented Dec 28, 2025

Copy link
Copy Markdown
Contributor

This PR replaces the player field in the Minecraft struct with a .get_player() method.
Which, when called, checks the current player pointer against the newest one and replaces it when unequal.

This fixes the issue where you have to reload the client every time a new world is joined

@TuinboonDev

Copy link
Copy Markdown
Contributor Author

Sorry if this needs to be on a new branch, ill change it if its an issue

@TheDarkSword

Copy link
Copy Markdown
Owner

Thank you! I’m sick righ now, when i feel better I will check and merge

@TheDarkSword

Copy link
Copy Markdown
Owner

All perfect! Thank you!

@TheDarkSword
TheDarkSword merged commit 03a4e37 into TheDarkSword:master Jan 3, 2026
2 checks passed
@TuinboonDev

Copy link
Copy Markdown
Contributor Author

No problem, thank you for merging!

@TheDarkSword

Copy link
Copy Markdown
Owner

No problem, thank you for merging!

If you want I’m working in a in-minecraft render system. I will push it in a different branch for now because is work in progress

@TuinboonDev

Copy link
Copy Markdown
Contributor Author

No problem, thank you for merging!

If you want I’m working in a in-minecraft render system. I will push it in a different branch for now because is work in progress

To be honest im not all too good with this type of project but id be happy to try and learn more and maybe even contribute more

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