mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 06:53:20 +00:00
Update FML:43d304243d3042Clean up a patchfec221fUpdate FML for MC 1.4.5b0f0635Fix for ModLoader static overrides not displaying.23a2513Fix up derpy file name handling: closes #127 Fix up duping childmods: cla6eaa2bFix spelling issue.c6a0741FML setup should now download and verify all the minecraft files needed5a1930eSmall fix to some MCP metadata for pre2418debaUpdate to MC 1.4.44ff2cffFix bug when a modloader mod is run on a dedicated server and has a conn
23 lines
934 B
Diff
23 lines
934 B
Diff
--- ../src_base/common/net/minecraft/src/BlockFarmland.java
|
|
+++ ../src_work/common/net/minecraft/src/BlockFarmland.java
|
|
@@ -3,6 +3,9 @@
|
|
import cpw.mods.fml.common.Side;
|
|
import cpw.mods.fml.common.asm.SideOnly;
|
|
import java.util.Random;
|
|
+
|
|
+import net.minecraftforge.common.ForgeDirection;
|
|
+import net.minecraftforge.common.IPlantable;
|
|
|
|
public class BlockFarmland extends Block
|
|
{
|
|
@@ -97,7 +100,8 @@
|
|
{
|
|
int var8 = par1World.getBlockId(var6, par3 + 1, var7);
|
|
|
|
- if (var8 == Block.crops.blockID || var8 == Block.melonStem.blockID || var8 == Block.pumpkinStem.blockID || var8 == Block.potato.blockID || var8 == Block.carrot.blockID)
|
|
+ Block plant = blocksList[var8];
|
|
+ if (plant instanceof IPlantable && canSustainPlant(par1World, par2, par3, par4, ForgeDirection.UP, (IPlantable)plant))
|
|
{
|
|
return true;
|
|
}
|