Update to 1.19.4

This commit is contained in:
tibs 2023-03-15 09:14:56 -04:00
parent a847ba5615
commit 1577d06067
Signed by untrusted user who does not match committer: tibs
GPG key ID: 047833989F50F88F
5 changed files with 15 additions and 15 deletions

View file

@ -5,7 +5,7 @@ import me.tibinonest.mods.cauldron_dyeing.CauldronDyeing;
import net.minecraft.block.BlockState;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.nbt.NbtCompound;
import net.minecraft.network.Packet;
import net.minecraft.network.packet.Packet;
import net.minecraft.network.listener.ClientPlayPacketListener;
import net.minecraft.network.packet.s2c.play.BlockEntityUpdateS2CPacket;
import net.minecraft.server.world.ServerWorld;
@ -16,7 +16,7 @@ import org.jetbrains.annotations.Nullable;
import java.util.Arrays;
public class WaterCauldronBlockEntity extends BlockEntity {
private final int[] NULL_COLOR = new int[] {-1, -1, -1};
private static final int[] NULL_COLOR = new int[] {-1, -1, -1};
private int[] color = NULL_COLOR;
public WaterCauldronBlockEntity(BlockPos pos, BlockState state) {

View file

@ -26,7 +26,7 @@ import java.util.Map;
@Mixin(CauldronBehavior.class)
public interface CauldronBehaviorMixin {
@SuppressWarnings("target")
@Inject(method = "m_ducbhfos(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/ActionResult;", at = @At("HEAD"), cancellable = true)
@Inject(method = "method_32209", at = @At("HEAD"), cancellable = true)
private static void cauldron_dyeing$injectCleanDyeableItem(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, CallbackInfoReturnable<ActionResult> cir) {
var blockEntity = world.getBlockEntity(pos);
var item = stack.getItem();
@ -43,7 +43,7 @@ public interface CauldronBehaviorMixin {
}
@SuppressWarnings("target")
@Inject(method = "m_xrdlazrh(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/ActionResult;", at = @At(value = "TAIL"))
@Inject(method = "method_32217", at = @At(value = "TAIL"))
private static void cauldron_dyeing$injectFillWithWater(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, CallbackInfoReturnable<ActionResult> cir) {
var blockEntity = world.getBlockEntity(pos);
if (blockEntity instanceof WaterCauldronBlockEntity waterCauldron) {

View file

@ -24,11 +24,11 @@
"cauldron-dyeing.mixins.json"
],
"depends": {
"minecraft": ">=1.19.3",
"minecraft": ">=1.19.4",
"fabricloader": ">=0.12.0",
"fabric-object-builder-api-v1": ">=0.1"
},
"breaks": {
"sodium": "<0.4.9"
"sodium": "<0.4.10"
}
}