Move getWaterColor injection to method head

Fixes incompatibility with Bedrockify
This commit is contained in:
tibs 2022-03-29 00:03:15 -04:00 committed by tibs
parent d1d0e2c2bd
commit 8f042e20cc
Signed by untrusted user who does not match committer: tibs
GPG key ID: 047833989F50F88F

View file

@ -11,7 +11,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(BiomeColors.class) @Mixin(BiomeColors.class)
public class BiomeColorsMixin { public class BiomeColorsMixin {
@Inject(method = "getWaterColor", at = @At("RETURN"), cancellable = true) @Inject(method = "getWaterColor", at = @At("HEAD"), cancellable = true)
private static void modifyWaterColor(BlockRenderView world, BlockPos pos, CallbackInfoReturnable<Integer> cir) { private static void modifyWaterColor(BlockRenderView world, BlockPos pos, CallbackInfoReturnable<Integer> cir) {
var blockEntity = world.getBlockEntity(pos); var blockEntity = world.getBlockEntity(pos);