mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 18:39:42 -05:00
Update CraftBukkit to 1.6.1
This commit is contained in:
1 parent
f887b76a25
commit
6c09066e22
228 files changed
+6426
-5442
No files matched your search
@@ -36,8 +36,8 @@ public class EntityWitherSkull extends EntityFireball {
|
||||
if (!this.world.isStatic) {
|
||||
if (movingobjectposition.entity != null) {
|
||||
if (this.shooter != null) {
|
||||
if (movingobjectposition.entity.damageEntity(DamageSource.mobAttack(this.shooter), 8) && !movingobjectposition.entity.isAlive()) {
|
||||
this.shooter.heal(5, org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.WITHER); // CraftBukkit
|
||||
if (movingobjectposition.entity.damageEntity(DamageSource.mobAttack(this.shooter), 8.0F) && !movingobjectposition.entity.isAlive()) {
|
||||
this.shooter.heal(5.0F, org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.WITHER); // CraftBukkit
|
||||
}
|
||||
} else {
|
||||
movingobjectposition.entity.damageEntity(DamageSource.MAGIC, 5);
|
||||
@@ -77,7 +77,7 @@ public class EntityWitherSkull extends EntityFireball {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean damageEntity(DamageSource damagesource, int i) {
|
||||
public boolean damageEntity(DamageSource damagesource, float f) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user