mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 14:24:42 +00:00
Fix butterfly
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user