Skip to content

Commit

Permalink
Document known cases where X-Ray fallback mixin gets called with Indigo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Dec 29, 2024
1 parent 12ee764 commit 684012b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public abstract class BlockModelRendererMixin implements ItemConvertible
ThreadLocal.withInitial(() -> 1F);

/**
* Makes X-Ray work when neither Sodium nor Indigo are running.
* Makes X-Ray work when neither Sodium nor Indigo are running. Also gets
* called while Indigo is running when breaking a block in survival mode or
* seeing a piston retract.
*/
@WrapOperation(at = @At(value = "INVOKE",
target = "Lnet/minecraft/block/Block;shouldDrawSide(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z"),
Expand Down

0 comments on commit 684012b

Please sign in to comment.