mirror of
https://github.com/TibiNonEst/cauldron-dyeing.git
synced 2024-11-24 11:37:19 -05:00
Move getWaterColor injection to method head
Fixes incompatibility with Bedrockify
This commit is contained in:
parent
a1187fbe82
commit
cc0fe6f455
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue