Fix butterfly

This commit is contained in:
Nedelosk committed 2016-10-25 00:50:58 +02:00
1 parent 3b8af4e4c9
commit c5c056750a
1 file changed
+3 -3
@@ -236,10 +236,10 @@ public class ItemButterflyGE extends ItemGE implements ISpriteRegister, IColored
if(tileEntity instanceof IButterflyNursery){
nursery = (IButterflyNursery) tileEntity;
}else{
ITree treeLeave = GeneticsUtil.getPollen(worldIn, pos);
IIndividual treeLeave = GeneticsUtil.getPollen(worldIn, pos);
if(treeLeave != null){
if(treeLeave.setLeaves(worldIn, playerIn.getGameProfile(), pos)){
if(treeLeave != null && treeLeave instanceof ITree){
if(((ITree)treeLeave).setLeaves(worldIn, playerIn.getGameProfile(), pos)){
nursery = (IButterflyNursery) worldIn.getTileEntity(pos);
}
}