Open ItsHarry opened 7 years ago
Looks like the issue is here: https://github.com/MarkehMe/FactionsFramework/blob/master/layers/Layer_1_6/src/main/java/me/markeh/factionsframework/layer/layer_1_6/Events_1_6.java#L90
I will have to change the type, thanks for reporting! 😄
There are more occurrences, also with other types like FPlayer and Faction which don't seem to implement Comparable, not sure how the plugin even works unless I'm missing something
I've only found it being miss-used with chunk. I believe natural ordering is used as a fallback? Not sure.
It may be helpful if I implement Comparable onto all the frameworks entities. But I'm currently in the process of making FactionsFramework2 (complete rewrite)
Trying to work out why I did this with Chunk. 😨
I fixed it
Not sure how nobody else has reported this before. You can't add an object to a TreeSet if it does not implement Comparable.