Mojira Archive
MCM-169

Updating inventory in 1 tick not visually displaying until relog

Release_662590

Summary: Clearing an item off a player, then giving them a different item in the same tick results in the item being given but not visually updating. The item cleared will disappear, but the new item won't show until relog. Clicking the slot where the item should be in the hotbar doesn't update the inventory.

Impact: Systems that need to run based on the success of a previous command can't run continuously.

Repro Steps:
1. Open a creative world.
2. Give yourself a repeating command block and a chain command block.
3. Put the following command inside the repeating command block and power it:
execute @a ~ ~ ~ detect ~ ~ ~ water -1 clear @s torch
4. Put the following command inside the chain command block, which should chain off the repeating command block. Set it to activate conditionally:
execute @a ~ ~ ~ detect ~ ~ ~ water -1 give @s stone
5. Give yourself a torch
6. Jump in some water

Observed Results:
You'll get the following messages:
[@: Cleared the inventory of PLAYERNAME, removing 1 items]
You have been given Stone x 1
[@: Gave Stone x 1 to PLAYERNAME]

The torch will have successfully been removed from your inventory. You will not see stone in your inventory. If you relog, you WILL see stone in your inventory.

Expected Results:
You should be able to see the correct inventory without having to relog.

Screenshots/Videos attached: No

Fixed

[Noxcrew] Joe Arsenault

2018-03-05, 05:29 PM

2018-03-08, 12:15 AM

2018-03-08, 12:15 AM

0

0

Future Release

-