mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
21 lines
1.0 KiB
Diff
21 lines
1.0 KiB
Diff
--- a/net/minecraft/entity/passive/EntityRabbit.java
|
|
+++ b/net/minecraft/entity/passive/EntityRabbit.java
|
|
@@ -370,7 +370,7 @@
|
|
int k = MathHelper.func_76128_c(this.field_70161_v);
|
|
BlockPos blockpos = new BlockPos(i, j, k);
|
|
Block block = p_205020_1_.func_180495_p(blockpos.func_177977_b()).func_177230_c();
|
|
- return block != Blocks.field_150349_c && block != Blocks.field_150433_aE && block != Blocks.field_150354_m ? super.func_205020_a(p_205020_1_) : true;
|
|
+ return block != Blocks.field_196658_i && block != Blocks.field_150433_aE && block != Blocks.field_150354_m ? super.func_205020_a(p_205020_1_) : true;
|
|
}
|
|
|
|
private boolean func_175534_cv() {
|
|
@@ -438,7 +438,7 @@
|
|
|
|
public boolean func_75250_a() {
|
|
if (this.field_179496_a <= 0) {
|
|
- if (!this.field_179500_c.field_70170_p.func_82736_K().func_82766_b("mobGriefing")) {
|
|
+ if (!net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(this.field_179500_c.field_70170_p, this.field_179500_c)) {
|
|
return false;
|
|
}
|
|
|