Allow Ritual of Magnetism to Pull GT Ores (#125)

Co-authored-by: koolkrafter5 <[email protected]>
This commit is contained in:
SHARKYauandkoolkrafter5 authored and GitHub committed 2026-05-03 05:16:13 -04:00
1 parent f3e594ad7f
commit 26580c10b3
5 files changed
+17 -13

No files matched your search

@@ -23,6 +23,7 @@ import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
import WayofTime.alchemicalWizardry.common.ItemType;
import WayofTime.alchemicalWizardry.common.block.BlockTeleposer;
import gregtech.common.blocks.GTBlockOre;
public class RitualEffectMagnetic extends RitualEffect {
@@ -34,7 +35,10 @@ public class RitualEffectMagnetic extends RitualEffect {
public static boolean isBlockOre(Block block, int meta) {
// Special case for lit redstone ore
if (block instanceof BlockOre || block instanceof BlockRedstoneOre) return true;
if (block instanceof BlockOre || block instanceof BlockRedstoneOre
|| (AlchemicalWizardry.isGregTechLoaded && block instanceof GTBlockOre)) {
return true;
}
if (block == null || Item.getItemFromBlock(block) == null) return false;