diff --git a/patches/minecraft/net/minecraft/item/BlockItemUseContext.java.patch b/patches/minecraft/net/minecraft/item/BlockItemUseContext.java.patch index 9ab96fadc8..3d882cf334 100644 --- a/patches/minecraft/net/minecraft/item/BlockItemUseContext.java.patch +++ b/patches/minecraft/net/minecraft/item/BlockItemUseContext.java.patch @@ -1,14 +1,6 @@ --- a/net/minecraft/item/BlockItemUseContext.java +++ b/net/minecraft/item/BlockItemUseContext.java -@@ -5,6 +5,7 @@ - import net.minecraft.util.EnumFacing; - import net.minecraft.util.math.BlockPos; - import net.minecraft.world.World; -+import net.minecraftforge.event.terraingen.BiomeEvent.GetGrassColor; - - public class BlockItemUseContext extends ItemUseContext { - private final BlockPos field_196014_j; -@@ -25,7 +26,7 @@ +@@ -25,7 +25,7 @@ } public boolean func_196011_b() { diff --git a/src/main/java/net/minecraftforge/common/extensions/IForgeBlock.java b/src/main/java/net/minecraftforge/common/extensions/IForgeBlock.java index 54f7444d74..bf2b201eeb 100644 --- a/src/main/java/net/minecraftforge/common/extensions/IForgeBlock.java +++ b/src/main/java/net/minecraftforge/common/extensions/IForgeBlock.java @@ -465,9 +465,10 @@ public interface IForgeBlock */ default boolean canPlaceTorchOnTop(IBlockState state, IWorldReaderBase world, BlockPos pos) { + // Keep conditionals in sync with BlockTorch#isValidPosition if (this == Blocks.END_GATEWAY) { return false; - } else if (state.isTopSolid() || this instanceof BlockFence || this == Blocks.GLASS || this == Blocks.COBBLESTONE_WALL || this instanceof BlockStainedGlass) { + } else if (this instanceof BlockFence || this instanceof BlockStainedGlass || this == Blocks.GLASS || this == Blocks.COBBLESTONE_WALL || this == Blocks.MOSSY_COBBLESTONE_WALL || state.isTopSolid()) { return true; } else { BlockFaceShape shape = state.getBlockFaceShape(world, pos, EnumFacing.UP);