chore: cherry pick 1.16 updates

This commit is contained in:
Discreater committed 2021-07-20 13:21:13 +08:00
1 parent 21eb93ea01
commit c88415241f
29 files changed
+273 -175

No files matched your search

@@ -214,7 +214,7 @@ public class Utilities {
public Circulator move(int steps) {
current += steps;
if (current < 0)
current += (-current) / total * total + total;
current += (total - current - 1) / total * total;
else
current = current % total;
return this;