Update to Minecraft 1.19.1

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2022-07-28 04:00:00 +10:00
parent 7c33b52741
commit f8db65033c
41 changed files with 654 additions and 579 deletions

View File

@@ -21,7 +21,7 @@
public EntityItem(EntityTypes<? extends EntityItem> entitytypes, World world) {
super(entitytypes, world);
@@ -105,9 +112,12 @@
@@ -103,9 +110,12 @@
this.discard();
} else {
super.tick();
@@ -37,7 +37,7 @@
this.xo = this.getX();
this.yo = this.getY();
@@ -157,9 +167,11 @@
@@ -155,9 +165,11 @@
this.mergeWithNeighbours();
}
@@ -49,7 +49,7 @@
this.hasImpulse |= this.updateInWaterStateAndDoFluidPushing();
if (!this.level.isClientSide) {
@@ -171,6 +183,12 @@
@@ -169,6 +181,12 @@
}
if (!this.level.isClientSide && this.age >= 6000) {
@@ -62,7 +62,7 @@
this.discard();
}
@@ -246,10 +264,11 @@
@@ -244,10 +262,11 @@
private static void merge(EntityItem entityitem, ItemStack itemstack, ItemStack itemstack1) {
ItemStack itemstack2 = merge(itemstack, itemstack1, 64);
@@ -75,7 +75,7 @@
merge(entityitem, itemstack, itemstack1);
entityitem.pickupDelay = Math.max(entityitem.pickupDelay, entityitem1.pickupDelay);
entityitem.age = Math.min(entityitem.age, entityitem1.age);
@@ -275,6 +294,11 @@
@@ -273,6 +292,11 @@
} else if (this.level.isClientSide) {
return true;
} else {
@@ -87,7 +87,7 @@
this.markHurt();
this.health = (int) ((float) this.health - f);
this.gameEvent(GameEvent.ENTITY_DAMAGE, damagesource.getEntity());
@@ -338,6 +362,46 @@
@@ -336,6 +360,46 @@
Item item = itemstack.getItem();
int i = itemstack.getCount();
@@ -134,7 +134,7 @@
if (this.pickupDelay == 0 && (this.owner == null || this.owner.equals(entityhuman.getUUID())) && entityhuman.getInventory().add(itemstack)) {
entityhuman.take(this, i);
if (itemstack.isEmpty()) {
@@ -381,7 +445,9 @@
@@ -379,7 +443,9 @@
}
public void setItem(ItemStack itemstack) {