Some misbehaving mods *cough GT5u cough* enjoy reallocating textures all the time, so try a normal hash set instead of a reference one...

This commit is contained in:
Jason Mitchell authored and Jason Mitchell committed 2024-03-03 09:26:33 -08:00
1 parent 346a305f1d
commit f41f27e706
1 file changed
+3 -3
@@ -2,7 +2,7 @@ package com.gtnewhorizons.angelica.mixins.early.angelica.animation;
import com.gtnewhorizons.angelica.mixins.interfaces.ITexturesCache;
import com.gtnewhorizons.angelica.utils.AnimationsRenderUtils;
import it.unimi.dsi.fastutil.objects.ReferenceOpenHashSet;
import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet;
import net.minecraft.block.Block;
import net.minecraft.block.BlockFire;
import net.minecraft.client.renderer.RenderBlocks;
@@ -27,7 +27,7 @@ public class MixinRenderBlocks implements ITexturesCache {
@Shadow
public IIcon overrideBlockTexture;
private Set<IIcon> renderedSprites = new ReferenceOpenHashSet<>();
private Set<IIcon> renderedSprites = new ObjectOpenHashSet<>();
/**
* @author laetansky Here where things get very tricky. We can't just mark blocks textures for update because this
@@ -66,7 +66,7 @@ public class MixinRenderBlocks implements ITexturesCache {
return icon;
}
@Inject(method = "drawCrossedSquares", at = @At("HEAD"))
public void angelica$markCrossedSquaresAnimationForUpdate(IIcon icon, double p_147765_2_, double p_147765_4_, double p_147765_6_, float p_147765_8_,
CallbackInfo ci) {