Add an updated copy of refill_hotbar.sc#413
Add an updated copy of refill_hotbar.sc#413WesleyJ-128 wants to merge 7 commits intognembon:masterfrom
Conversation
|
I would suggest renaming the old one to _<old_version>, and keeping the always the new one working as with normal name. |
Rename old script to reflect compatible versions (1.20.4 and below)
Rename updated script to original script name
|
I've noticed what appears to be a client/server desync bug where the item swapped into the hotbar doesn't appear for the player if the item count is 1— the item is there, and appears once manipulated. I don't know how/if this can be fixed. |
|
Sorry, but now I am looking at it - the only difference really is in handling of the items of the sboxes. In that case this can be wrapped in a simple if based on major version number similar to And that would keep one script to handle all versions |
|
I like having just one script; I'll look at adding an if statement to combine the two. |
The existing refill_hotbar.sc is broken in versions 1.20.5+. This is a fix added as a new script since it is not backwards-compatible.