Skip to content

Commit 5b705d2

Browse files
committed
Mark animations of crossed squares
Fixes Angelica's equivalent of GTNewHorizons/Hodgepodge#264 Fixes Campfire Backport campfire flames not animating (but the embers and the mixed NEI flames are still broken)
1 parent 733ffff commit 5b705d2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/gtnewhorizons/angelica/mixins/early/angelica/animation/MixinRenderBlocks.java

+8
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ public class MixinRenderBlocks implements ITexturesCache {
6666

6767
return icon;
6868
}
69+
70+
@Inject(method = "drawCrossedSquares", at = @At("HEAD"))
71+
public void angelica$markCrossedSquaresAnimationForUpdate(IIcon icon, double p_147765_2_, double p_147765_4_, double p_147765_6_, float p_147765_8_,
72+
CallbackInfo ci) {
73+
AnimationsRenderUtils.markBlockTextureForUpdate(icon, blockAccess);
74+
75+
this.renderedSprites.add(icon);
76+
}
6977

7078
@Override
7179
public Set<IIcon> getRenderedTextures() {

0 commit comments

Comments
 (0)