Fix Flower Mutation Registration

This commit is contained in:
Nedelosk committed 2016-10-27 01:34:14 +02:00
1 parent 5b4d490e94
commit ccb718b84d
1 file changed
+3 -1
@@ -13,7 +13,9 @@ public class FlowerFactory implements IFlowerFactory {
@Override
public IFlowerMutationBuilder createMutation(IAlleleFlowerSpecies parentFlower0, IAlleleFlowerSpecies parentFlower1, IAllele[] result, int chance) {
return new FlowerMutation(parentFlower0, parentFlower1, result, chance);
FlowerMutation mutation = new FlowerMutation(parentFlower0, parentFlower1, result, chance);
FlowerManager.flowerRoot.registerMutation(mutation);
return mutation;
}
}