Skip to content

Commit

Permalink
removed coal drop
Browse files Browse the repository at this point in the history
  • Loading branch information
Oganesson897 committed Dec 16, 2024
1 parent fc62d6d commit 909a162
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/supersymmetry/mixins/yungs/MixinSideRoom.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -20,4 +23,9 @@ public abstract class MixinSideRoom extends MineshaftPiece {
}
}

@Redirect(method = "addComponentParts", at = @At(value = "INVOKE", target = "Lnet/minecraft/item/ItemStack;<init>(Lnet/minecraft/item/Item;I)V"))
private void susycore$removeCoal(ItemStack instance, Item itemIn, int amount) {
if (itemIn == Items.COAL) instance.setCount(0);
}

}

0 comments on commit 909a162

Please sign in to comment.