mirror of
https://github.com/TibiNonEst/cauldron-dyeing.git
synced 2024-11-24 03:27:19 -05:00
Revert synthetic mapping mixins to intermediary
Fixes #2. Fabric doesn't support hashed-mojang, I forgot about that.
This commit is contained in:
parent
ac4e748820
commit
a1187fbe82
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ import java.util.Map;
|
||||||
|
|
||||||
@Mixin(CauldronBehavior.class)
|
@Mixin(CauldronBehavior.class)
|
||||||
public interface CauldronBehaviorMixin {
|
public interface CauldronBehaviorMixin {
|
||||||
@Inject(method = "m_ducbhfos", at = @At("HEAD"), cancellable = true)
|
@Inject(method = "method_32209", at = @At("HEAD"), cancellable = true)
|
||||||
private static void injectCleanDyeableItem(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, CallbackInfoReturnable<ActionResult> cir) {
|
private static void injectCleanDyeableItem(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, CallbackInfoReturnable<ActionResult> cir) {
|
||||||
var blockEntity = world.getBlockEntity(pos);
|
var blockEntity = world.getBlockEntity(pos);
|
||||||
var item = stack.getItem();
|
var item = stack.getItem();
|
||||||
|
@ -41,7 +41,7 @@ public interface CauldronBehaviorMixin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = "m_xrdlazrh", at = @At(value = "TAIL"))
|
@Inject(method = "method_32217", at = @At(value = "TAIL"))
|
||||||
private static void injectFillWithWater(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, CallbackInfoReturnable<ActionResult> cir) {
|
private static void injectFillWithWater(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, CallbackInfoReturnable<ActionResult> cir) {
|
||||||
var blockEntity = world.getBlockEntity(pos);
|
var blockEntity = world.getBlockEntity(pos);
|
||||||
if (blockEntity instanceof WaterCauldronBlockEntity waterCauldron) {
|
if (blockEntity instanceof WaterCauldronBlockEntity waterCauldron) {
|
||||||
|
|
Loading…
Reference in a new issue