by adding wart blocks and shroomlights to the blocks the industrial chainsaw searches for.

Tested, works. In review to make sure this is appropriate for the mod.
This commit is contained in:
Ayutac 2022-04-28 10:48:48 +02:00 committed by GitHub
parent b95219b3ac
commit a6ae3a7984
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,7 @@
package techreborn.items.tool.industrial;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.client.item.TooltipContext;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
@ -75,7 +76,7 @@ public class IndustrialChainsawItem extends ChainsawItem {
if (state.isIn(BlockTags.LOGS)) {
wood.add(checkPos);
findWood(world, checkPos, wood, leaves);
} else if (state.isIn(BlockTags.LEAVES)) {
} else if (state.isIn(BlockTags.LEAVES) || state.isIn(BlockTags.WART_BLOCKS) || state.isOf(Blocks.SHROOMLIGHT)) {
leaves.add(checkPos);
findWood(world, checkPos, wood, leaves);
}