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()) {
|
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!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue