From 507747798771ff6f8e383e9ce3a942b9135557b1 Mon Sep 17 00:00:00 2001 From: vegeta1k95 Date: Thu, 23 Feb 2023 00:03:05 +0100 Subject: [PATCH] Attempt to fix JDK8 compatibility with TextureArraySpriteBatch --- .../unciv/ui/screens/basescreen/TextureArraySpriteBatch.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java b/core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java index 1178896702..ae164323cd 100644 --- a/core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java +++ b/core/src/com/unciv/ui/screens/basescreen/TextureArraySpriteBatch.java @@ -1108,8 +1108,8 @@ public class TextureArraySpriteBatch implements Batch { mesh.setVertices(vertices, 0, idx); - mesh.getIndicesBuffer().position(0); - mesh.getIndicesBuffer().limit(count); + ((Buffer) mesh.getIndicesBuffer()).position(0); + ((Buffer) mesh.getIndicesBuffer()).limit(count); if (blendingDisabled) { Gdx.gl.glDisable(GL20.GL_BLEND);