mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
The Ring of Magnetization can no longer pull relics.
This commit is contained in:
1 parent
f294b8ab17
commit
0c4b569515
1 file changed
+2
-1
@@ -22,6 +22,7 @@ import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.entity.item.ItemTossEvent;
|
||||
import vazkii.botania.api.item.IRelic;
|
||||
import vazkii.botania.api.mana.IManaItem;
|
||||
import vazkii.botania.client.core.helper.IconHelper;
|
||||
import vazkii.botania.common.Botania;
|
||||
@@ -112,7 +113,7 @@ public class ItemMagnetRing extends ItemBauble {
|
||||
return false;
|
||||
|
||||
ItemStack stack = item.getEntityItem();
|
||||
if(stack == null || stack.getItem() instanceof IManaItem || BLACKLIST.contains(itemRegistry.getNameForObject(stack.getItem())))
|
||||
if(stack == null || stack.getItem() instanceof IManaItem || stack.getItem() instanceof IRelic || BLACKLIST.contains(itemRegistry.getNameForObject(stack.getItem())))
|
||||
return false;
|
||||
|
||||
int x = net.minecraft.util.MathHelper.floor_double(item.posX);
|
||||
|
||||
Reference in new issue
Block a user