diff --git a/patches/net/minecraft/item/ItemHoe.java.patch b/patches/net/minecraft/item/ItemHoe.java.patch new file mode 100644 index 00000000..800d9093 --- /dev/null +++ b/patches/net/minecraft/item/ItemHoe.java.patch @@ -0,0 +1,19 @@ +--- ../src-base/minecraft/net/minecraft/item/ItemHoe.java ++++ ../src-work/minecraft/net/minecraft/item/ItemHoe.java +@@ -1,5 +1,6 @@ + package net.minecraft.item; + ++import carpet.CarpetSettings; + import com.google.common.collect.Multimap; + import net.minecraft.block.Block; + import net.minecraft.block.BlockDirt; +@@ -48,7 +49,8 @@ + IBlockState iblockstate = p_180614_2_.func_180495_p(p_180614_3_); + Block block = iblockstate.func_177230_c(); + +- if (p_180614_5_ != EnumFacing.DOWN && p_180614_2_.func_180495_p(p_180614_3_.func_177984_a()).func_185904_a() == Material.field_151579_a) ++ // Added relaxed placement for tilling water on top of dirt. CARPET-XCOM ++ if (p_180614_5_ != EnumFacing.DOWN && (p_180614_2_.func_180495_p(p_180614_3_.func_177984_a()).func_185904_a() == Material.field_151579_a || (CarpetSettings.relaxedBlockPlacement && p_180614_2_.func_180495_p(p_180614_3_.func_177984_a()).func_185904_a() == Material.field_151586_h))) + { + if (block == Blocks.field_150349_c || block == Blocks.field_185774_da) + {