alRex-U / ParCool

A Minecraft Forge Mod for action of Cool Parkour
GNU General Public License v3.0
42 stars 33 forks source link

The javafx.util.pair class is unavailable in some java versions #101

Closed EnderLiquid closed 1 year ago

EnderLiquid commented 1 year ago

Summary The javafx.util.pair class is unavailable in some java versions.

Running Environment

Detail When I tried to move in the world,a server-side crash occured. "Caused by: java.lang.ClassNotFoundException: javafx.util.Pair" See:https://github.com/alRex-U/ParCool/blob/1502fe61af799a4903c7332b128ba9d3e681f0e2/src/main/java/com/alrex/parcool/common/network/SyncActionStateMessage.java#L215 In some versions of openjdk, "jfxrt.jar" is missing for the uses of the javafx.util.pair class. Can you please replace this using other methods?

Additional Data Complete crash report:https://pastebin.com/Kw8VrY8K

alRex-U commented 1 year ago

Wow! Really I did not want to do but I used JavaFX module. It must be needs to fix soon.

too many classes named Pair annoying

alRex-U commented 1 year ago

Maybe I mistook javafx.util.Pair for javax.util.Pair (of course such class does not exist)