mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 21:33:49 -07:00
Update to Minecraft 1.16.1
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
this.lastX = this.locX();
|
||||
this.lastY = this.locY();
|
||||
@@ -102,9 +110,11 @@
|
||||
@@ -103,9 +111,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,9 +45,9 @@
|
||||
}
|
||||
+ // CraftBukkit end */
|
||||
|
||||
this.impulse |= this.aC();
|
||||
this.impulse |= this.aG();
|
||||
if (!this.world.isClientSide) {
|
||||
@@ -116,6 +126,12 @@
|
||||
@@ -117,6 +127,12 @@
|
||||
}
|
||||
|
||||
if (!this.world.isClientSide && this.age >= 6000) {
|
||||
@@ -60,7 +60,7 @@
|
||||
this.die();
|
||||
}
|
||||
|
||||
@@ -185,10 +201,11 @@
|
||||
@@ -192,10 +208,11 @@
|
||||
private static void a(EntityItem entityitem, ItemStack itemstack, ItemStack itemstack1) {
|
||||
ItemStack itemstack2 = a(itemstack, itemstack1, 64);
|
||||
|
||||
@@ -73,17 +73,8 @@
|
||||
a(entityitem, itemstack, itemstack1);
|
||||
entityitem.pickupDelay = Math.max(entityitem.pickupDelay, entityitem1.pickupDelay);
|
||||
entityitem.age = Math.min(entityitem.age, entityitem1.age);
|
||||
@@ -199,7 +216,7 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
- protected void burn(int i) {
|
||||
+ protected void burn(float i) { // CraftBukkit - int -> float
|
||||
this.damageEntity(DamageSource.FIRE, (float) i);
|
||||
}
|
||||
|
||||
@@ -210,6 +227,11 @@
|
||||
} else if (!this.getItemStack().isEmpty() && this.getItemStack().getItem() == Items.NETHER_STAR && damagesource.isExplosion()) {
|
||||
@@ -219,6 +236,11 @@
|
||||
} else if (!this.getItemStack().getItem().a(damagesource)) {
|
||||
return false;
|
||||
} else {
|
||||
+ // CraftBukkit start
|
||||
@@ -94,7 +85,7 @@
|
||||
this.velocityChanged();
|
||||
this.f = (int) ((float) this.f - f);
|
||||
if (this.f <= 0) {
|
||||
@@ -271,6 +293,40 @@
|
||||
@@ -280,6 +302,40 @@
|
||||
Item item = itemstack.getItem();
|
||||
int i = itemstack.getCount();
|
||||
|
||||
@@ -135,7 +126,7 @@
|
||||
if (this.pickupDelay == 0 && (this.owner == null || this.owner.equals(entityhuman.getUniqueID())) && entityhuman.inventory.pickup(itemstack)) {
|
||||
entityhuman.receive(this, i);
|
||||
if (itemstack.isEmpty()) {
|
||||
@@ -313,7 +369,9 @@
|
||||
@@ -323,7 +379,9 @@
|
||||
}
|
||||
|
||||
public void setItemStack(ItemStack itemstack) {
|
||||
@@ -144,4 +135,4 @@
|
||||
+ this.getDataWatcher().markDirty(EntityItem.ITEM); // CraftBukkit - SPIGOT-4591, must mark dirty
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user