Skip to content

Comments

Reload player object when invalid pointer#11

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

Reload player object when invalid pointer#11
TheDarkSword merged 1 commit intoTheDarkSword:masterfrom
TuinboonDev:master

Conversation

@TuinboonDev
Copy link
Contributor

@TuinboonDev TuinboonDev commented Dec 28, 2025

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
Contributor Author

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

@TheDarkSword
Copy link
Owner

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

@TheDarkSword
Copy link
Owner

All perfect! Thank you!

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

No problem, thank you for merging!

@TheDarkSword
Copy link
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
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

MyosSSS added a commit to MyosSSS/DarkClient that referenced this pull request Feb 18, 2026
Reload player object when invalid pointer
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