Okay. I looked into this, and it turns out to be a pretty easy fix:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
// Apply returned ItemStack
if (playersao->setWieldedItem(item)) {
SendInventory(playersao);
}
You need both calls to setWieldedItem to then call SendInventory in serverpackethandler. That seems to do the trick.