From b0a5d3ea7d81d368627e8f611b6345dd3dc90669 Mon Sep 17 00:00:00 2001 From: nekit508 Date: Wed, 24 Apr 2024 22:13:55 +0400 Subject: [PATCH] FIX#23 --- src/fos/graphics/FOSOreRenderer.java | 3 ++- src/fos/graphics/cachelayers/AnimatedOreCacheLayer.java | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fos/graphics/FOSOreRenderer.java b/src/fos/graphics/FOSOreRenderer.java index 47ff85eb..65b37ba4 100644 --- a/src/fos/graphics/FOSOreRenderer.java +++ b/src/fos/graphics/FOSOreRenderer.java @@ -29,7 +29,8 @@ import static mindustry.Vars.world; public class FOSOreRenderer { - public static Seq oreCacheLayers = new Seq<>(); // do not change after world load + /** Do not rearange after world load!!! */ + public static Seq oreCacheLayers = new Seq<>(); private static final VertexAttribute[] attributes = {VertexAttribute.position, VertexAttribute.color, VertexAttribute.texCoords}; private static final int diff --git a/src/fos/graphics/cachelayers/AnimatedOreCacheLayer.java b/src/fos/graphics/cachelayers/AnimatedOreCacheLayer.java index aa1536a1..238876e7 100644 --- a/src/fos/graphics/cachelayers/AnimatedOreCacheLayer.java +++ b/src/fos/graphics/cachelayers/AnimatedOreCacheLayer.java @@ -11,7 +11,6 @@ public class AnimatedOreCacheLayer extends CacheLayer.ShaderLayer { public AnimatedOreCacheLayer(Shader shader) { super(shader); - CacheLayer.add(this); FOSOreRenderer.oreCacheLayers.add(this); id = FOSOreRenderer.oreCacheLayers.size-1; }