mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
030a07b1d6
For seven years and two days, the algorithm for ascent and descent has had an off-by-one error, and started at the wrong level. Also, the message for failed descent has apparently never been right. I figured I'd follow Java's conventions (as I see them) and have a body for the loop, so instead of incrementing the counter within the loop condition, I refactored the loop and put in a break statement. I prefer the shorter version, but POLA wins in a foreign code base. |
||
---|---|---|
.. | ||
src | ||
build.gradle |