Skip to content

Commit

Permalink
Fix crash with Embeddium 0.3.20 #120
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadiboo committed Jun 16, 2024
1 parent 43cd106 commit 25489c5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ public class FluidRendererMixin {
value = "INVOKE",
target = "Lnet/minecraft/world/level/BlockAndTintGetter;getFluidState(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/world/level/material/FluidState;"
),
require = 2 // Redirect both calls to the function
// Embeddium >= 3.20 now only has a single call to getFluidState in isFluidOccluded
// See https://github.com/embeddedt/embeddium/commit/ece7936967834fc663b6e0dc14ea286ff23b1700?diff=split&w=0
// require = 2 // Redirect both calls to the function
require = 1
)
private FluidState noCubes$getFluidState(BlockAndTintGetter world, BlockPos adjPos) {
return ClientHooks.getRenderFluidState(adjPos, world.getBlockState(adjPos));
Expand Down

0 comments on commit 25489c5

Please sign in to comment.