Whenever I try to save the game, it crashes, here's the text on the error.txt file:
com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:122)
at com.majalis.talesofandrogyny.desktop.DesktopLauncher.main(DesktopLauncher.java:39)
Caused by: java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
at com.majalis.screens.AbstractScreen.getScreenshot(AbstractScreen.java:437)
at com.majalis.screens.AbstractScreen.takeScreenshot(AbstractScreen.java:417)
at com.majalis.screens.WorldMapScreen.save(WorldMapScreen.java:692)
at com.majalis.screens.WorldMapScreen.access$1200(WorldMapScreen.java:97)
at com.majalis.screens.WorldMapScreen$11.clicked(WorldMapScreen.java:552)
at com.badlogic.gdx.scenes.scene2d.utils.ClickListener.touchUp(ClickListener.java:88)
at com.badlogic.gdx.scenes.scene2d.InputListener.handle(InputListener.java:71)
at com.badlogic.gdx.scenes.scene2d.Stage.touchUp(Stage.java:355)
at com.badlogic.gdx.InputMultiplexer.touchUp(InputMultiplexer.java:124)
at com.badlogic.gdx.InputEventQueue.drain(InputEventQueue.java:70)
at com.badlogic.gdx.backends.lwjgl3.DefaultLwjgl3Input.update(DefaultLwjgl3Input.java:189)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.update(Lwjgl3Window.java:394)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop(Lwjgl3Application.java:143)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:116)
... 1 more
any idea how to fix it?