[SUGGESTION] Dynamic trees compat for grove sprites AI
Sunconure11 opened this issue · 9 comments
Ok got it to work properly. Not going to implement specific AI to maintain the Dynamic trees for now but at least they will change color and have proper items. :)
Hey. Just looking over your code. Once you get a Species object you can get the primitive leaves IBlockState by using species.getLeavesProperties().getPrimitiveLeaves(). No need to do a search in the world for the leaves. Might be more efficient.
Edit: Also if (state != null && state.getBlock() instanceof ITreePart && TreeHelper.isBranch(state)) can be reduced to if(TreeHelper.isBranch(state)) since it does all the checks anyway.
Would it be possible to add some support for the various addons that exist for DT, as well? Or should that already be possible with your code changes?
Thanks for the review @ferreusveritas ! Appreciate it. I have made the changes :)