Skip to content

Commit

Permalink
Use object equality instead of reference equality to discover vertex …
Browse files Browse the repository at this point in the history
…format elements

Fixes some Ender IO conduit components not rendering
  • Loading branch information
embeddedt committed Jan 14, 2024
1 parent 3119e7f commit e9564a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ dependencies {
implementation rfg.deobf("curse.maven:codechicken-lib-1-8-242818:2779848")

// testing
//implementation rfg.deobf("curse.maven:enderio-64578:4674244")
//implementation rfg.deobf("curse.maven:endercore-231868:4671384")
//implementation rfg.deobf("curse.maven:redstoneflux-270789:2920436")
//implementation rfg.deobf("curse.maven:cofhcore-69162:2920433")
//implementation rfg.deobf("curse.maven:cofhworld-271384:2920434")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package me.jellysquid.mods.sodium.client.render.vertex;

import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap;
import it.unimi.dsi.fastutil.objects.Reference2ReferenceOpenHashMap;
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.client.renderer.vertex.VertexFormat;
Expand All @@ -20,7 +21,7 @@ public enum Element {
NORMAL(DefaultVertexFormats.NORMAL_3B);

final VertexFormatElement underlyingElement;
static final Map<VertexFormatElement, Element> VANILLA_TO_COMMON = new Reference2ReferenceOpenHashMap<>();
static final Map<VertexFormatElement, Element> VANILLA_TO_COMMON = new Object2ObjectOpenHashMap<>();
Element(VertexFormatElement baseElement) {
this.underlyingElement = baseElement;
}
Expand Down

0 comments on commit e9564a6

Please sign in to comment.