mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-27 15:33:18 +00:00
e88ddc5- Make the exception print for headless servers if the Downloader cant initalize.f24ff07- Remove a bunch of warning about javadoc, not a real fix, but no more warning.3420ea7- Update MCP Mapings87104f0- Makes GetModSrc check the common folder when attempting to extract source files640446b- Tie parent/child containers together again. Should close #962cf4917- Village mating produces added villagers, and the egg should place added villagers too. Closes #97.6394ee8- Clean up stale references to the Player stored in the NetworkRegistry, closes #1007299e05- Merge pull request #99 from CovertJaguar/patch-1c4bd040- More readable init logs
29 lines
917 B
Diff
29 lines
917 B
Diff
--- ../src_base/common/net/minecraft/src/ItemHoe.java
|
|
+++ ../src_work/common/net/minecraft/src/ItemHoe.java
|
|
@@ -1,5 +1,7 @@
|
|
package net.minecraft.src;
|
|
|
|
+import net.minecraftforge.common.MinecraftForge;
|
|
+import net.minecraftforge.event.entity.UseHoeEvent;
|
|
import cpw.mods.fml.common.Side;
|
|
import cpw.mods.fml.common.asm.SideOnly;
|
|
|
|
@@ -28,6 +30,17 @@
|
|
}
|
|
else
|
|
{
|
|
+ UseHoeEvent event = new UseHoeEvent(par2EntityPlayer, par1ItemStack, par3World, par4, par5, par6);
|
|
+ if (MinecraftForge.EVENT_BUS.post(event))
|
|
+ {
|
|
+ return false;
|
|
+ }
|
|
+ if (event.isHandeled())
|
|
+ {
|
|
+ par1ItemStack.damageItem(1, par2EntityPlayer);
|
|
+ return true;
|
|
+ }
|
|
+
|
|
int var11 = par3World.getBlockId(par4, par5, par6);
|
|
int var12 = par3World.getBlockId(par4, par5 + 1, par6);
|
|
|