Please sign in to comment.
Handle block-specific trait exceptions in material_info
The hardness and blastResistance traits are unavailable for non-block materials (such as REDSTONE), causing material_info('REDSTONE') to throw an error in core. This commit no longer returns these traits for non-block materials and throws a CREIllegalArgumentException when these traits are specifically asked for on non-block materials.
- Loading branch information...
Showing with 15 additions and 4 deletions.