From c48c28cd2f7776fdfff67570f9cc987308264cb9 Mon Sep 17 00:00:00 2001 From: PepperCode1 <44146161+PepperCode1@users.noreply.github.com> Date: Sun, 10 Apr 2022 13:25:04 -0700 Subject: [PATCH] Fix schematics rendering layers in the wrong order --- .../create/content/schematics/client/SchematicRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/schematics/client/SchematicRenderer.java b/src/main/java/com/simibubi/create/content/schematics/client/SchematicRenderer.java index fb9fb0b63..5eea3f169 100644 --- a/src/main/java/com/simibubi/create/content/schematics/client/SchematicRenderer.java +++ b/src/main/java/com/simibubi/create/content/schematics/client/SchematicRenderer.java @@ -1,6 +1,6 @@ package com.simibubi.create.content.schematics.client; -import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.Map; import java.util.Random; @@ -33,7 +33,7 @@ public class SchematicRenderer { private static final ThreadLocal THREAD_LOCAL_OBJECTS = ThreadLocal.withInitial(ThreadLocalObjects::new); - private final Map bufferCache = new HashMap<>(getLayerCount()); + private final Map bufferCache = new LinkedHashMap<>(getLayerCount()); private boolean active; private boolean changed; protected SchematicWorld schematic;