Slightly improve render performance of genetic items (bee, trees, etc)

This commit is contained in:
mezz committed 2017-11-11 22:04:39 -08:00
1 parent 58ab49d66e
commit 3df3d9121e
6 files changed
+10 -12

No files matched your search

@@ -1,7 +1,6 @@
package forestry.apiculture.compat;
import com.google.common.base.Preconditions;
import forestry.api.apiculture.BeeManager;
import forestry.api.genetics.IAlleleSpecies;
import forestry.apiculture.ModuleApiculture;
import forestry.apiculture.items.ItemRegistryApiculture;
@@ -20,7 +19,7 @@ public class ApicultureJeiPlugin implements IModPlugin {
Preconditions.checkNotNull(items);
ISubtypeRegistry.ISubtypeInterpreter beeSubtypeInterpreter = itemStack -> {
IAlleleSpecies species = Genome.getSpeciesDirectly(BeeManager.beeRoot, itemStack);
IAlleleSpecies species = Genome.getSpeciesDirectly(itemStack);
return species == null ? ISubtypeRegistry.ISubtypeInterpreter.NONE : species.getUID();
};