mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 23:13:15 +00:00
21 lines
949 B
Diff
21 lines
949 B
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockFarmland.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockFarmland.java
|
|
@@ -12,6 +12,8 @@
|
|
import net.minecraft.util.AxisAlignedBB;
|
|
import net.minecraft.util.IIcon;
|
|
import net.minecraft.world.World;
|
|
+import net.minecraftforge.common.IPlantable;
|
|
+import net.minecraftforge.common.util.ForgeDirection;
|
|
|
|
public class BlockFarmland extends Block
|
|
{
|
|
@@ -94,7 +96,7 @@
|
|
{
|
|
Block block = p_149822_1_.func_147439_a(l, p_149822_3_ + 1, i1);
|
|
|
|
- if (block == Blocks.field_150464_aj || block == Blocks.field_150394_bc || block == Blocks.field_150393_bb || block == Blocks.field_150469_bN || block == Blocks.field_150459_bM)
|
|
+ if (block instanceof IPlantable && canSustainPlant(p_149822_1_, p_149822_2_, p_149822_3_, p_149822_4_, ForgeDirection.UP, (IPlantable)block))
|
|
{
|
|
return true;
|
|
}
|