Skip to content

Commit

Permalink
Some misbehaving mods *cough GT5u cough* enjoy reallocating textures …
Browse files Browse the repository at this point in the history
…all the time, so try a normal hash set instead of a reference one...
  • Loading branch information
mitchej123 committed Mar 3, 2024
1 parent 346a305 commit f41f27e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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;
Expand All @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit f41f27e

Please sign in to comment.