Closed griffin4cats closed 1 year ago
Right, related to #23, which I identified in single-player. My sense is that the simplest way to fix this would be to disable serialization of ghost entities when the chunk is getting unloaded. Haven't really dug in to figure out exactly how to do that.
...oh, actually yeah, I think it might be a trivial fix...
A duplication glitch is easy to cause with quicksort. It works by turning the ghost items into real items via logging out from the server (and thus unloading the chunks). I did this on 1.19.4 quilt, but I bet this would work on any version.
Recreating it is simple:
Other information I've gathered from testing:
For server owners, the best fix is to just disable animations in the config. Disabling animation when there's no player nearby is probably the best fix and would fix almost all of the problem, as well as adding some performance improvement to the mod. Items in transit would still end up duplicated, so in addition to disabling animation, killing all ghost items upon player disconnect would likely fix the entire problem.