mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 04:32:24 +00:00
Fix #234 Analyst Eating Items
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user