Send Creative Inventory on Player First Spawn#1808
Send Creative Inventory on Player First Spawn#1808Christian7573 wants to merge 2 commits intoNukkit:masterfrom Christian7573:creative-invintory-fix
Conversation
|
@jonathanpeppers A research would be good to know when it happens and taking a look at the current inventory sending code, for me it used to happen sometimes but it wasn't really a major issue thats why I didn't reported it anytime. It happened for me sometimes also after gamemode changing. |
|
Oh yes that change which made the Player variable from protected to public is not good, because plugins can actually edit the variable how they like to. |
|
Here is how it has been happening for me (this is issue #1786):
I was finding I could only get the inventory back if I deletes all the player I have Minecraft: PE 1.1.4 on iOS. Also, I tried @Christian7573 's code and it seems to work, however I have never worked in this codebase before--so maybe it needs to happen in another place than |
|
Also Event changes made which shouldn't be made. |
|
Ok, I'll do some research. Also, if you're referring to the weird public / protected change in PlayerEvent, that was something from when I first downloaded nukkit and I undid it in the next commit. |
|
Thanks @Christian7573 See #1842, same fix but add for each user in server. |
I got bored, so I attempted to fix #1786