From 73f87ab44ee56b9ffe51ae4dda15b50d574d74aa Mon Sep 17 00:00:00 2001 From: grimmauld Date: Wed, 24 Mar 2021 23:42:42 +0100 Subject: [PATCH] Exotic smoking - all blocks tagged as campfires that have the lit blockstate property set to true are now valid smoke sources --- .../simibubi/create/content/logistics/InWorldProcessing.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/logistics/InWorldProcessing.java b/src/main/java/com/simibubi/create/content/logistics/InWorldProcessing.java index 3d8b5f4cc..408dd9b12 100644 --- a/src/main/java/com/simibubi/create/content/logistics/InWorldProcessing.java +++ b/src/main/java/com/simibubi/create/content/logistics/InWorldProcessing.java @@ -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))