Skip to content

Commit

Permalink
FIX#23
Browse files Browse the repository at this point in the history
  • Loading branch information
nekit508 committed Apr 24, 2024
1 parent 8f203bc commit b0a5d3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/fos/graphics/FOSOreRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
import static mindustry.Vars.world;

public class FOSOreRenderer {
public static Seq<AnimatedOreCacheLayer> oreCacheLayers = new Seq<>(); // do not change after world load
/** Do not rearange after world load!!! */
public static Seq<AnimatedOreCacheLayer> oreCacheLayers = new Seq<>();

private static final VertexAttribute[] attributes = {VertexAttribute.position, VertexAttribute.color, VertexAttribute.texCoords};
private static final int
Expand Down
1 change: 0 additions & 1 deletion src/fos/graphics/cachelayers/AnimatedOreCacheLayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b0a5d3e

Please sign in to comment.