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); + } + }