From 8e01929713f7cc666e2ed7cf412fca39bfc31930 Mon Sep 17 00:00:00 2001 From: dima_dencep Date: Sat, 16 Mar 2024 05:30:01 +0700 Subject: [PATCH] Fix #24 --- .../ChestBlockEntityMixin.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/me/jellysquid/mods/lithium/mixin/util/inventory_change_listening/ChestBlockEntityMixin.java b/src/main/java/me/jellysquid/mods/lithium/mixin/util/inventory_change_listening/ChestBlockEntityMixin.java index 722b3b8c3..7fa5cda09 100644 --- a/src/main/java/me/jellysquid/mods/lithium/mixin/util/inventory_change_listening/ChestBlockEntityMixin.java +++ b/src/main/java/me/jellysquid/mods/lithium/mixin/util/inventory_change_listening/ChestBlockEntityMixin.java @@ -6,7 +6,6 @@ import net.minecraft.block.entity.ChestBlockEntity; import net.minecraft.block.entity.LootableContainerBlockEntity; import net.minecraft.util.math.BlockPos; -import org.spongepowered.asm.mixin.Intrinsic; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; @@ -18,14 +17,14 @@ protected ChestBlockEntityMixin(BlockEntityType blockEntityType, BlockPos blo super(blockEntityType, blockPos, blockState); } - @SuppressWarnings("deprecation") - // @Intrinsic + /*@SuppressWarnings("deprecation") + @Intrinsic @Override public void setCachedState(BlockState state) { super.setCachedState(state); - } + }*/ - @SuppressWarnings({"MixinAnnotationTarget", "UnresolvedMixinReference"}) + // @SuppressWarnings({"MixinAnnotationTarget", "UnresolvedMixinReference"}) @Inject(method = "setCachedState(Lnet/minecraft/block/BlockState;)V", at = @At("RETURN")) private void emitRemovedOnSetCachedState(CallbackInfo ci) { //Handle switching double / single chest state