Fixed sapling drops for base leaves (paulevsGitch/BetterNether#496)
This commit is contained in:
parent
be3876f8a6
commit
5aa06315d4
2 changed files with 10 additions and 5 deletions
|
@ -10,7 +10,11 @@ public class BaseShearsItem extends ShearsItem {
|
|||
public BaseShearsItem(Properties properties) {
|
||||
super(properties);
|
||||
}
|
||||
|
||||
|
||||
public static boolean isShear(ItemStack tool){
|
||||
return tool.is(Items.SHEARS) | tool.is(TagAPI.ITEM_COMMON_SHEARS) || tool.is(TagAPI.ITEM_SHEARS);
|
||||
}
|
||||
|
||||
public static boolean isShear(ItemStack itemStack, Item item){
|
||||
if (item == Items.SHEARS){
|
||||
return itemStack.is(item) | itemStack.is(TagAPI.ITEM_COMMON_SHEARS) || itemStack.is(TagAPI.ITEM_SHEARS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue