Initial stab at 1.11
About halfway.
This commit is contained in:
parent
ce52aea512
commit
00d6f8eb46
157 changed files with 1036 additions and 1554 deletions
|
@ -9,6 +9,7 @@ import net.minecraft.block.BlockOre;
|
|||
import net.minecraft.block.BlockRedstoneOre;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
|
@ -50,7 +51,7 @@ public class RitualMagnetic extends Ritual
|
|||
if (block instanceof BlockOre || block instanceof BlockRedstoneOre)
|
||||
return true;
|
||||
|
||||
if (Item.getItemFromBlock(block) == null)
|
||||
if (Item.getItemFromBlock(block) == Items.AIR)
|
||||
return false;
|
||||
|
||||
BlockStack type = new BlockStack(block, meta);
|
||||
|
@ -71,7 +72,7 @@ public class RitualMagnetic extends Ritual
|
|||
|
||||
public static boolean isBlockOre(ItemStack stack)
|
||||
{
|
||||
if (stack == null)
|
||||
if (stack.isEmpty())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue