diff options
Diffstat (limited to 'nms-patches/EntitySmallFireball.patch')
-rw-r--r-- | nms-patches/EntitySmallFireball.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/EntitySmallFireball.patch b/nms-patches/EntitySmallFireball.patch index be58eb11..8e472c32 100644 --- a/nms-patches/EntitySmallFireball.patch +++ b/nms-patches/EntitySmallFireball.patch @@ -9,9 +9,9 @@ public EntitySmallFireball(World world) { @@ -26,7 +28,14 @@ - if (flag) { - this.a(this.shooter, movingobjectposition.entity); - if (!movingobjectposition.entity.isFireProof()) { + flag = movingobjectposition.entity.damageEntity(DamageSource.fireball(this, this.shooter), 5.0F); + if (flag) { + this.a(this.shooter, movingobjectposition.entity); - movingobjectposition.entity.setOnFire(5); + // CraftBukkit start - Entity damage by entity event + combust event + EntityCombustByEntityEvent event = new EntityCombustByEntityEvent((org.bukkit.entity.Projectile) this.getBukkitEntity(), movingobjectposition.entity.getBukkitEntity(), 5); |