@@ -47,7 +47,7 @@
|
||||
Vec3D vec3d = new Vec3D(this.followingPlayer.getX() - this.getX(), this.followingPlayer.getY() + (double) this.followingPlayer.getEyeHeight() / 2.0D - this.getY(), this.followingPlayer.getZ() - this.getZ());
|
||||
double d0 = vec3d.lengthSqr();
|
||||
|
||||
@@ -119,7 +143,7 @@
|
||||
@@ -121,7 +145,7 @@
|
||||
|
||||
++this.age;
|
||||
if (this.age >= 6000) {
|
||||
@@ -56,7 +56,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -188,7 +212,7 @@
|
||||
@@ -190,7 +214,7 @@
|
||||
private void merge(EntityExperienceOrb entityexperienceorb) {
|
||||
this.count += entityexperienceorb.count;
|
||||
this.age = Math.min(this.age, entityexperienceorb.age);
|
||||
@@ -65,7 +65,7 @@
|
||||
}
|
||||
|
||||
private void setUnderwaterMovement() {
|
||||
@@ -213,7 +237,7 @@
|
||||
@@ -215,7 +239,7 @@
|
||||
this.markHurt();
|
||||
this.health = (int) ((float) this.health - f);
|
||||
if (this.health <= 0) {
|
||||
@@ -74,7 +74,7 @@
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -240,17 +264,17 @@
|
||||
@@ -242,17 +266,17 @@
|
||||
public void playerTouch(EntityHuman entityhuman) {
|
||||
if (entityhuman instanceof EntityPlayer entityplayer) {
|
||||
if (entityhuman.takeXpDelay == 0) {
|
||||
@@ -95,7 +95,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -264,12 +288,20 @@
|
||||
@@ -266,12 +290,20 @@
|
||||
ItemStack itemstack = ((EnchantedItemInUse) optional.get()).itemStack();
|
||||
int j = EnchantmentManager.modifyDurabilityToRepairFromXp(entityplayer.serverLevel(), itemstack, i);
|
||||
int k = Math.min(j, itemstack.getDamageValue());
|
||||
@@ -116,7 +116,7 @@
|
||||
return this.repairPlayerItems(entityplayer, l);
|
||||
}
|
||||
}
|
||||
@@ -289,6 +321,24 @@
|
||||
@@ -291,6 +323,24 @@
|
||||
}
|
||||
|
||||
public static int getExperienceValue(int i) {
|
||||
|
||||
Reference in New Issue
Block a user