Fix #234 Analyst Eating Items

This commit is contained in:
Nedelosk committed 2017-07-30 19:58:20 +02:00
1 parent fcbbd06c63
commit fcef87b3da
1 file changed
+4 -2
@@ -38,11 +38,13 @@ public class Analyser {
public static ItemStack analyse(ItemStack stack, World world, GameProfile username) {
if (!stack.isEmpty()) {
final ItemStack conv = Binnie.GENETICS.getConversionStack(stack);
ItemStack conv = Binnie.GENETICS.getConversionStack(stack).copy();
if (!conv.isEmpty()) {
conv.setCount(stack.getCount());
stack = conv;
}
final ISpeciesRoot root = AlleleManager.alleleRegistry.getSpeciesRoot(stack);
ISpeciesRoot root = AlleleManager.alleleRegistry.getSpeciesRoot(stack);
if (root != null) {
final IIndividual ind = root.getMember(stack);
ind.analyze();