Skip to content

Commit

Permalink
Fix #24
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-dencep committed Mar 15, 2024
1 parent 2c2f0be commit 8e01929
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 8e01929

Please sign in to comment.