Rewrite framed map tracker ticking#9605
Conversation
c76e3c6 to
ea10f5d
Compare
ea10f5d to
bd7c062
Compare
|
I've been running this patch on my server for ~1 week+ (after making my own makeshift patch that did only the ItemFrame The only thing is that this patch needs to be rebased (again) for the latest version for it to compile, because |
|
I was looking over this PR again and it seems like my approach here was a bit flawed, since it did not account for one framed map being viewed in multiple locations and being updated, only players viewing the item frame that's first in the entity iteration order would've seen the changes. There are still some other gains that could be made, such as reducing the amount of map update packets being sent to players while no changes actually occurred, and the mess that is the tickCarriedBy (seriously, maps in item frames shouldn't have to check if the player is wearing a pumpkin). |
Rewrites the tracking code for framed maps to remove the use of the tickCarriedBy method and the HoldingPlayer class. the tickCarriedBy method contained a lot of code that did not apply to framed maps at all, and by moving the parts that did elsewhere, we can essentially skip it.
Closes #9597