Only warn about missing mineable when a tool is required
This commit is contained in:
parent
f85f45582d
commit
bb64e86754
1 changed files with 3 additions and 2 deletions
|
@ -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!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue