Started by
ekiplier9906
on
Topic category: Help with Minecraft modding (Java Edition)
Hi! I've created a mod that runs a procedure that removes an item from the player's inventory and places it in the main hand. However, if this is executed in quick succession, there is a chance it will create a "ghost" item - basically, an item that is only removed on server side but is still loaded on client until the player updates their inventory. Is there a way to manually force update the inventory almost immediately after this procedure?
I've had a very similiar problem, I think I solved It making the procedure wait 1 tick before removing the item and wait another tick before giving It back
hi, i tried waiting 1 tick between the actions but it still doesn't seem to work.
Do you know why?