@@ -80,7 +80,7 @@
|
||||
+ public int getExpReward() {
|
||||
+ int exp = this.getExpValue(this.killer);
|
||||
+
|
||||
+ if (!this.world.isClientSide && (this.lastDamageByPlayerTime > 0 || this.alwaysGivesExp()) && this.isDropExperience() && this.world.getGameRules().getBoolean("doMobLoot")) {
|
||||
+ if (!this.world.isClientSide && (this.lastDamageByPlayerTime > 0 || this.alwaysGivesExp()) && this.isDropExperience() && this.world.getGameRules().getBoolean(GameRules.DO_MOB_LOOT)) {
|
||||
+ return exp;
|
||||
+ } else {
|
||||
+ return 0;
|
||||
@@ -93,13 +93,13 @@
|
||||
|
||||
@@ -314,19 +366,19 @@
|
||||
|
||||
protected void cn() {
|
||||
protected void co() {
|
||||
++this.deathTicks;
|
||||
- if (this.deathTicks == 20) {
|
||||
+ if (this.deathTicks >= 20 && !this.dead) { // CraftBukkit - (this.deathTicks == 20) -> (this.deathTicks >= 20 && !this.dead)
|
||||
int i;
|
||||
|
||||
- if (!this.world.isClientSide && (this.alwaysGivesExp() || this.lastDamageByPlayerTime > 0 && this.isDropExperience() && this.world.getGameRules().getBoolean("doMobLoot"))) {
|
||||
- if (!this.world.isClientSide && (this.alwaysGivesExp() || this.lastDamageByPlayerTime > 0 && this.isDropExperience() && this.world.getGameRules().getBoolean(GameRules.DO_MOB_LOOT))) {
|
||||
- i = this.getExpValue(this.killer);
|
||||
-
|
||||
- while (i > 0) {
|
||||
@@ -505,7 +505,7 @@
|
||||
}
|
||||
|
||||
@@ -1115,6 +1351,12 @@
|
||||
if (this.isDropExperience() && this.world.getGameRules().getBoolean("doMobLoot")) {
|
||||
if (this.isDropExperience() && this.world.getGameRules().getBoolean(GameRules.DO_MOB_LOOT)) {
|
||||
this.a(damagesource, flag);
|
||||
this.dropDeathLoot(damagesource, i, flag);
|
||||
+ // CraftBukkit start - Call death event
|
||||
@@ -516,7 +516,7 @@
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
|
||||
this.cE();
|
||||
this.cF();
|
||||
@@ -1218,8 +1460,13 @@
|
||||
int i = MathHelper.f((f - 3.0F - f2) * f1);
|
||||
|
||||
@@ -797,7 +797,7 @@
|
||||
+
|
||||
+ this.a(this.getRaisedHand(), itemstack);
|
||||
+ // CraftBukkit end
|
||||
this.dp();
|
||||
this.dq();
|
||||
}
|
||||
|
||||
@@ -2495,10 +2908,18 @@
|
||||
@@ -825,7 +825,7 @@
|
||||
@@ -2585,7 +3006,7 @@
|
||||
}
|
||||
|
||||
public void dy() {
|
||||
public void dz() {
|
||||
- Optional optional = this.getBedPosition();
|
||||
+ Optional<BlockPosition> optional = this.getBedPosition(); // CraftBukkit - decompile error
|
||||
World world = this.world;
|
||||
|
||||
Reference in New Issue
Block a user