mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 04:32:15 +00:00
Convert Forge to use Official mappings. Mojang released their obfuscation mappings but we have not used them up until now due to wanting to get their license to be more explicitly permissive. It is clear that their intent is to allow us to use their names for developing mods like this. See the full wording, and our interpretation here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md
17 lines
806 B
Diff
17 lines
806 B
Diff
--- a/net/minecraft/block/CocoaBlock.java
|
|
+++ b/net/minecraft/block/CocoaBlock.java
|
|
@@ -35,10 +_,11 @@
|
|
}
|
|
|
|
public void func_225542_b_(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, Random p_225542_4_) {
|
|
- if (p_225542_2_.field_73012_v.nextInt(5) == 0) {
|
|
+ if (true) {
|
|
int i = p_225542_1_.func_177229_b(field_176501_a);
|
|
- if (i < 2) {
|
|
+ if (i < 2 && net.minecraftforge.common.ForgeHooks.onCropsGrowPre(p_225542_2_, p_225542_3_, p_225542_1_, p_225542_2_.field_73012_v.nextInt(5) == 0)) {
|
|
p_225542_2_.func_180501_a(p_225542_3_, p_225542_1_.func_206870_a(field_176501_a, Integer.valueOf(i + 1)), 2);
|
|
+ net.minecraftforge.common.ForgeHooks.onCropsGrowPost(p_225542_2_, p_225542_3_, p_225542_1_);
|
|
}
|
|
}
|
|
|