@@ -1,7 +1,7 @@
|
||||
--- a/net/minecraft/world/entity/item/EntityItem.java
|
||||
+++ b/net/minecraft/world/entity/item/EntityItem.java
|
||||
@@ -34,6 +34,15 @@
|
||||
import net.minecraft.world.level.portal.DimensionTransition;
|
||||
import net.minecraft.world.level.portal.TeleportTransition;
|
||||
import net.minecraft.world.phys.Vec3D;
|
||||
|
||||
+// CraftBukkit start
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
this.xo = this.getX();
|
||||
this.yo = this.getY();
|
||||
@@ -187,9 +200,11 @@
|
||||
@@ -188,9 +201,11 @@
|
||||
this.mergeWithNeighbours();
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
this.hasImpulse |= this.updateInWaterStateAndDoFluidPushing();
|
||||
if (!this.level().isClientSide) {
|
||||
@@ -201,7 +216,13 @@
|
||||
@@ -202,7 +217,13 @@
|
||||
}
|
||||
|
||||
if (!this.level().isClientSide && this.age >= 6000) {
|
||||
@@ -71,7 +71,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -284,11 +305,16 @@
|
||||
@@ -287,11 +308,16 @@
|
||||
}
|
||||
|
||||
private static void merge(EntityItem entityitem, ItemStack itemstack, EntityItem entityitem1, ItemStack itemstack1) {
|
||||
@@ -89,9 +89,9 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -309,12 +335,17 @@
|
||||
} else if (this.level().isClientSide) {
|
||||
return true;
|
||||
@@ -320,12 +346,17 @@
|
||||
} else if (!this.getItem().canBeHurtBy(damagesource)) {
|
||||
return false;
|
||||
} else {
|
||||
+ // CraftBukkit start
|
||||
+ if (CraftEventFactory.handleNonLivingEntityDamageEvent(this, damagesource, f)) {
|
||||
@@ -108,7 +108,7 @@
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -366,7 +397,7 @@
|
||||
@@ -382,7 +413,7 @@
|
||||
}
|
||||
|
||||
if (this.getItem().isEmpty()) {
|
||||
@@ -117,7 +117,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -378,10 +409,50 @@
|
||||
@@ -394,10 +425,50 @@
|
||||
Item item = itemstack.getItem();
|
||||
int i = itemstack.getCount();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user