diff --git a/src/main/java/forestry/core/utils/GeneticsUtil.java b/src/main/java/forestry/core/utils/GeneticsUtil.java index c64166850..05b94a7bb 100644 --- a/src/main/java/forestry/core/utils/GeneticsUtil.java +++ b/src/main/java/forestry/core/utils/GeneticsUtil.java @@ -41,23 +41,23 @@ import forestry.plugins.PluginArboriculture; public class GeneticsUtil { - private static Set ersatzSpecimenMaterials; + private static Set ersatzSpecimenBlocks; - private static Set getErsatzSpecimenMaterials() { - if (ersatzSpecimenMaterials == null) { - ersatzSpecimenMaterials = new HashSet(); + private static Set getErsatzBlocks() { + if (ersatzSpecimenBlocks == null) { + ersatzSpecimenBlocks = new HashSet(); for (ItemStack ersatzSpecimen : AlleleManager.ersatzSpecimen.keySet()) { Block ersatzBlock = StackUtils.getBlock(ersatzSpecimen); if (ersatzBlock != null) { - ersatzSpecimenMaterials.add(ersatzBlock.getMaterial()); + ersatzSpecimenBlocks.add(ersatzBlock); } } } - return ersatzSpecimenMaterials; + return ersatzSpecimenBlocks; } - private static boolean isErsatzMaterial(Block block) { - return block != null && getErsatzSpecimenMaterials().contains(block.getMaterial()); + private static boolean isErsatzBlock(Block block) { + return block != null && getErsatzBlocks().contains(block); } public static boolean hasNaturalistEye(EntityPlayer player) { @@ -127,7 +127,7 @@ public class GeneticsUtil { public static ITree getErsatzPollen(World world, final int x, final int y, final int z) { Block block = world.getBlock(x, y, z); - if (!isErsatzMaterial(block)) { + if (!isErsatzBlock(block)) { return null; }