Fix schematics rendering layers in the wrong order

This commit is contained in:
PepperCode1 2022-04-10 13:25:04 -07:00
parent c7aca258af
commit c48c28cd2f

View file

@ -1,6 +1,6 @@
package com.simibubi.create.content.schematics.client; package com.simibubi.create.content.schematics.client;
import java.util.HashMap; import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
import java.util.Random; import java.util.Random;
@ -33,7 +33,7 @@ public class SchematicRenderer {
private static final ThreadLocal<ThreadLocalObjects> THREAD_LOCAL_OBJECTS = ThreadLocal.withInitial(ThreadLocalObjects::new); private static final ThreadLocal<ThreadLocalObjects> THREAD_LOCAL_OBJECTS = ThreadLocal.withInitial(ThreadLocalObjects::new);
private final Map<RenderType, SuperByteBuffer> bufferCache = new HashMap<>(getLayerCount()); private final Map<RenderType, SuperByteBuffer> bufferCache = new LinkedHashMap<>(getLayerCount());
private boolean active; private boolean active;
private boolean changed; private boolean changed;
protected SchematicWorld schematic; protected SchematicWorld schematic;