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()) {
final ResourceLocation location = BuiltInRegistries.BLOCK.getKey(block);
if (!location.getNamespace().equals("minecraft")) {
if (!(block instanceof HasMinableBehaviour)) {
BCLib.LOGGER.warning("Block " + block + " has no minable behaviour!");
if (!(block instanceof HasMinableBehaviour) && block.defaultBlockState()
.requiresCorrectToolForDrops()) {
BCLib.LOGGER.error("Block " + block + "(" + block.getClass() + ")" + " has no mineable behaviour!");
}
}
}