Move getWaterColor injection to method head

Fixes incompatibility with Bedrockify
This commit is contained in:
tibs 2022-03-29 00:03:15 -04:00
parent a1187fbe82
commit cc0fe6f455
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)
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) {
var blockEntity = world.getBlockEntity(pos);