Migrated getDrops

This commit is contained in:
drcrazy 2019-02-21 13:54:49 +03:00
parent bdb8834a3e
commit bd00135137
14 changed files with 29 additions and 46 deletions

View file

@ -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 ++;
}
}