summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityWitherSkull.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityWitherSkull.patch')
-rw-r--r--nms-patches/EntityWitherSkull.patch12
1 files changed, 7 insertions, 5 deletions
diff --git a/nms-patches/EntityWitherSkull.patch b/nms-patches/EntityWitherSkull.patch
index f51429c1..ba9d9478 100644
--- a/nms-patches/EntityWitherSkull.patch
+++ b/nms-patches/EntityWitherSkull.patch
@@ -8,19 +8,21 @@
public class EntityWitherSkull extends EntityFireball {
private static final DataWatcherObject<Boolean> e = DataWatcher.a(EntityWitherSkull.class, DataWatcherRegistry.h);
-@@ -37,9 +39,9 @@
+@@ -41,11 +43,11 @@
if (!this.world.isClientSide) {
if (movingobjectposition.entity != null) {
if (this.shooter != null) {
- if (movingobjectposition.entity.damageEntity(DamageSource.mobAttack(this.shooter), 8.0F)) {
+ if (movingobjectposition.entity.damageEntity(DamageSource.projectile(this, shooter), 8.0F)) { // CraftBukkit
- if (!movingobjectposition.entity.isAlive()) {
+ if (movingobjectposition.entity.isAlive()) {
+ this.a(this.shooter, movingobjectposition.entity);
+ } else {
- this.shooter.heal(5.0F);
+ this.shooter.heal(5.0F, org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.WITHER); // CraftBukkit
- } else {
- this.a(this.shooter, movingobjectposition.entity);
}
-@@ -63,7 +65,15 @@
+ }
+ } else {
+@@ -67,7 +69,15 @@
}
}