mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 06:43:05 +00:00
Slightly improve render performance of genetic items (bee, trees, etc)
This commit is contained in:
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();
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user