Migrated getDrops
This commit is contained in:
parent
bdb8834a3e
commit
bd00135137
14 changed files with 29 additions and 46 deletions
|
@ -27,6 +27,8 @@ package techreborn.events;
|
|||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tags.BlockTags;
|
||||
import net.minecraft.tags.Tag;
|
||||
import net.minecraft.util.EnumHand;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
|
@ -98,7 +100,7 @@ public class BlockBreakHandler {
|
|||
for (int i = 1; i < 10; i++) {
|
||||
BlockPos nextPos = pos.up(i);
|
||||
IBlockState nextState = worldIn.getBlockState(nextPos);
|
||||
if(nextState.getBlock().isWood(worldIn, nextPos)){
|
||||
if(nextState.getBlock().isIn(BlockTags.LOGS)){
|
||||
blocks ++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue