ForgePatch/patches/minecraft/net/minecraft/entity/projectile/EntityWitherSkull.java.patch
LexManos 5ac6d374ed Make Wither Skulls respect Block.canEntityDestroy. Closes #3404
(cherry picked from commit 6b52023a5c341420d976cb50359e2a2a4a6a9192)
2016-11-17 12:49:18 -08:00

11 lines
560 B
Diff

--- ../src-base/minecraft/net/minecraft/entity/projectile/EntityWitherSkull.java
+++ ../src-work/minecraft/net/minecraft/entity/projectile/EntityWitherSkull.java
@@ -62,7 +62,7 @@
float f = super.func_180428_a(p_180428_1_, p_180428_2_, p_180428_3_, p_180428_4_);
Block block = p_180428_4_.func_177230_c();
- if (this.func_82342_d() && EntityWither.func_181033_a(block))
+ if (this.func_82342_d() && block.canEntityDestroy(p_180428_4_, p_180428_2_, p_180428_3_, this))
{
f = Math.min(0.8F, f);
}