helper icon indicating copy to clipboard operation
helper copied to clipboard

Bucket doesn't split elements into different partition

Open awsqed opened this issue 5 years ago • 2 comments

When I run it on the server it doesn't return the expected result. image

image

image

Smaller partition size for clearer demonstration (32 partitions): image

EDIT: I'm using the main helper module, version 5.6.2, with a standalone plugin (version 5.6.4).

awsqed avatar Aug 24 '20 03:08 awsqed

https://github.com/lucko/helper/blob/master/helper/src/main/java/me/lucko/helper/bucket/AbstractBucket.java#L240

This is always 0 as sets contained are equal, so the only partitioning strategy that currently works is "RANDOM".

Bestle avatar Jan 24 '22 21:01 Bestle

Thanks for figuring it out - sorry I never got around to doing it myself.

I've added a fix above, let me know if that sorts it.

lucko avatar Jan 24 '22 22:01 lucko