Exotic smoking

- all blocks tagged as campfires that have the lit blockstate property set to true are now valid smoke sources
This commit is contained in:
grimmauld 2021-03-24 23:42:42 +01:00
parent bb18d9bf71
commit 73f87ab44e

View File

@ -36,6 +36,7 @@ import net.minecraft.item.crafting.SmokingRecipe;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.particles.ParticleTypes;
import net.minecraft.particles.RedstoneParticleData;
import net.minecraft.tags.BlockTags;
import net.minecraft.tileentity.BlastFurnaceTileEntity;
import net.minecraft.tileentity.FurnaceTileEntity;
import net.minecraft.tileentity.SmokerTileEntity;
@ -69,7 +70,7 @@ public class InWorldProcessing {
return Type.SPLASHING;
Block block = blockState.getBlock();
if (block == Blocks.FIRE || AllBlocks.LIT_BLAZE_BURNER.has(blockState)
|| (block == Blocks.CAMPFIRE && blockState.get(CampfireBlock.LIT))
|| (BlockTags.CAMPFIRES.contains(block) && blockState.method_28500(CampfireBlock.LIT).orElse(false))
|| getHeatLevelOf(blockState) == BlazeBurnerBlock.HeatLevel.SMOULDERING)
return Type.SMOKING;
if (block == Blocks.LAVA || getHeatLevelOf(blockState).isAtLeast(BlazeBurnerBlock.HeatLevel.FADING))