mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Fix #1640 Clientside crash when trying to access Statistics "Items" screen
This commit is contained in:
1 parent
5ce9b9f65b
commit
e075fe8fbf
1 file changed
+7
-1
@@ -25,6 +25,7 @@ import forestry.api.genetics.ICheckPollinatable;
|
||||
import forestry.api.genetics.IIndividual;
|
||||
import forestry.api.genetics.IPollinatable;
|
||||
import forestry.api.recipes.IVariableFermentable;
|
||||
import forestry.arboriculture.genetics.TreeDefinition;
|
||||
import forestry.arboriculture.genetics.TreeGenome;
|
||||
import forestry.core.config.Config;
|
||||
import forestry.core.genetics.ItemGE;
|
||||
@@ -123,7 +124,12 @@ public class ItemGermlingGE extends ItemGE implements IVariableFermentable, ICol
|
||||
private class GermlingMeshDefinition implements ItemMeshDefinition {
|
||||
@Override
|
||||
public ModelResourceLocation getModelLocation(ItemStack stack) {
|
||||
IAlleleTreeSpecies treeSpecies = getSpecies(stack);
|
||||
IAlleleTreeSpecies treeSpecies;
|
||||
if(!stack.hasTagCompound()){
|
||||
treeSpecies = TreeDefinition.Oak.getGenome().getPrimary();
|
||||
}else{
|
||||
treeSpecies = getSpecies(stack);
|
||||
}
|
||||
return treeSpecies.getGermlingModel(type);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user