Skip to content

Commit

Permalink
Mark animations of crossed squares
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
makamys committed Jan 21, 2024
1 parent 733ffff commit 5b705d2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ 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) {
AnimationsRenderUtils.markBlockTextureForUpdate(icon, blockAccess);

this.renderedSprites.add(icon);
}

@Override
public Set<IIcon> getRenderedTextures() {
Expand Down

0 comments on commit 5b705d2

Please sign in to comment.