Only warn about missing mineable when a tool is required

This commit is contained in:
Frank 2023-06-17 12:22:06 +02:00
parent f85f45582d
commit bb64e86754

View file

@ -257,8 +257,9 @@ public class PostInitAPI {
if (BCLib.isDatagen()) { if (BCLib.isDatagen()) {
final ResourceLocation location = BuiltInRegistries.BLOCK.getKey(block); final ResourceLocation location = BuiltInRegistries.BLOCK.getKey(block);
if (!location.getNamespace().equals("minecraft")) { if (!location.getNamespace().equals("minecraft")) {
if (!(block instanceof HasMinableBehaviour)) { if (!(block instanceof HasMinableBehaviour) && block.defaultBlockState()
BCLib.LOGGER.warning("Block " + block + " has no minable behaviour!"); .requiresCorrectToolForDrops()) {
BCLib.LOGGER.error("Block " + block + "(" + block.getClass() + ")" + " has no mineable behaviour!");
} }
} }
} }