From 909a1625e7446e2db60215d4f8593818947b5dbb Mon Sep 17 00:00:00 2001 From: Oganesson897 <101081378+Oganesson897@users.noreply.github.com> Date: Mon, 16 Dec 2024 22:33:42 +0900 Subject: [PATCH] removed coal drop --- .../java/supersymmetry/mixins/yungs/MixinSideRoom.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/supersymmetry/mixins/yungs/MixinSideRoom.java b/src/main/java/supersymmetry/mixins/yungs/MixinSideRoom.java index fe3f92580..fc3e2ae32 100644 --- a/src/main/java/supersymmetry/mixins/yungs/MixinSideRoom.java +++ b/src/main/java/supersymmetry/mixins/yungs/MixinSideRoom.java @@ -4,6 +4,9 @@ import com.yungnickyoung.minecraft.bettermineshafts.world.generator.pieces.SideRoom; import net.minecraft.block.BlockFurnace; import net.minecraft.block.state.IBlockState; +import net.minecraft.init.Items; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraft.world.gen.structure.StructureBoundingBox; import org.spongepowered.asm.mixin.Mixin; @@ -20,4 +23,9 @@ public abstract class MixinSideRoom extends MineshaftPiece { } } + @Redirect(method = "addComponentParts", at = @At(value = "INVOKE", target = "Lnet/minecraft/item/ItemStack;(Lnet/minecraft/item/Item;I)V")) + private void susycore$removeCoal(ItemStack instance, Item itemIn, int amount) { + if (itemIn == Items.COAL) instance.setCount(0); + } + }