Paragliders

Paragliders

4M Downloads

Rewrite WindUpdateHelper

Tictim opened this issue ยท 0 comments

commented

The code, method generateWind, which handles spawning of wind entities nearby one player, is riddled with ugly loops and random checks that doesn't make whole lot of sense.

Also it doesn't work properly. Its issue can be seen by adding common blocks like grass as custom wind sources. And number of wind entities oscillating can be seen in client, which probably indicates wind entity isn't being reused correctly. Also it spawned gazillions of wind in certain circumstances in some point of development, and I don't recall it being fixed or not. It's probably fixed before release, but it also means this horrid mess survived and passed along even after all of the bug fix business.

And what a bad name, like this doesn't update wind, so WindUpdate part isn't correct. Funny helper thing at the end doesn't help at all. I thought it was called WindPlacer or some sort, but well...