1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-04-28 14:45:08 +02:00

Add Block#isValidTool

This commit is contained in:
Jake Potrebic 2020-07-06 12:44:31 -07:00
parent a9cee72542
commit 53ea19c9bd

View file

@ -693,5 +693,9 @@ public class CraftBlock implements Block {
public String translationKey() {
return this.getNMS().getBlock().getDescriptionId();
}
public boolean isValidTool(ItemStack itemStack) {
return getDrops(itemStack).size() != 0;
}
// Paper end
}