mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 20:42:35 +00:00
Merge branch 'Greenhouse' of https://github.com/ForestryMC/ForestryMC into mc-1.12
This commit is contained in:
commit
8bb1b74b1c
1 file changed
+3
-1
@@ -19,6 +19,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
|
||||
import com.google.common.base.Objects;
|
||||
import forestry.api.genetics.IAllele;
|
||||
import forestry.api.genetics.IAlleleSpecies;
|
||||
import forestry.api.genetics.IChromosome;
|
||||
@@ -147,7 +148,8 @@ public abstract class Genome implements IGenome {
|
||||
if (genomeNbt.hasNoTags()) {
|
||||
Log.error("Got a genetic item with no genome, setting it to a default value.");
|
||||
genomeNbt = new NBTTagCompound();
|
||||
|
||||
|
||||
|
||||
IAllele[] defaultTemplate = speciesRoot.getDefaultTemplate();
|
||||
IGenome genome = speciesRoot.templateAsGenome(defaultTemplate);
|
||||
genome.writeToNBT(genomeNbt);
|
||||
|
||||
Reference in new issue
Block a user