ItemAllToolAA not respecting harvest levels (1.12.2).
JonathanCSmith opened this issue ยท 2 comments
It would appear that your complex nested ternary for assessing 'canHarvest' in ItemAllToolAA is not respecting the harvest levels declared by the blocks but is instead hardcoding the values. To my somewhat naive understanding this prevents mods from adjusting hardness levels and prevents intermod compatibility. I believe a fix would be to use something along the lines of: state.getBlock(). getHarvestLevel() where possible. This should also reduce some complexity on your end.