-
Notifications
You must be signed in to change notification settings - Fork 12
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
not avoiding race condition #17
Comments
Can you please describe the race condition you try to solve? Any error message? On my current conjecture no race conditions should be possible because the skinsdb set the skin synchron and character_creator override it in next step after(0). |
Between loading the skin and the skin being applied. This was happening on my server with no error messages as there was no error. No other skin mods. Symptom: Player custom skin not being displayed after login. |
load_skin is called synchronous in Line 239. always before the change_skin. After login the player is "Sam"? Is the issue reproduceable? If yes, please add some debug "print" in mentioned functions to check the call order. PS: A delay is allways an workaround, i like to try to understand the issue and find a proper solution. |
@morlanius , can you please check if the fix #18 solves this issue too? The race condition was related to the 3d_armor mod. |
character_creator/init.lua
Line 264 in 6f33ce5
Change this to this to actually avoid the race condition.
minetest.after(1, change_skin, player)
The text was updated successfully, but these errors were encountered: