Repository navigation
Conversation
|
hmm depends for the future.. if mojang change the distance how easy is follow that... its more "easy" just keep the logic for distanceToSqr but i wanna hear another comments. other thing... this now allow put high values... that cases works fine or need maybe set a max value? |
I had originally the squared value, but then the CraftFishHook implementation was kind of unreadable... but as said earlier, I have no issue go for the other variant
Will test that |
so when more than 64 blocks distant, the client considers the hook non existant and renders the item as it is not cast.... but when returned to the 64 block range it is rendered again normally... Should i limit it to 64 blocks or should I just note that in the JD? I tried to find where in the client is this cap set but was unable... |
|
Maybe it's server entity tracking/client entity view distance setting removing it? |
d417104 to
6e6d47b
Compare
It is not being removed, when returned, it is still cast, only thing that changes the model property fishing rod cast basically is set to false, so the item is considered as not being used until you return to the 64 block range... I have tracking/view distance set to 10, presuming it is chunks, so it should be happening around 160 blocks? My client view/sim distance is set to 12 chunks... |
its not from the method related to render? |
Yea, that must be it. I would still vote for noting that in jd, rather than strictly limiting that... |
yeah can be good just notice about the render thing |


One thing to consider is whether to store the value squared or not, I opted to sqrting it on the go, but if that means too much overhead, I will change it...