@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/entity/item/EntityItem.java
|
||||
+++ b/net/minecraft/world/entity/item/EntityItem.java
|
||||
@@ -31,6 +31,15 @@
|
||||
@@ -33,6 +33,15 @@
|
||||
import net.minecraft.world.level.gameevent.GameEvent;
|
||||
import net.minecraft.world.phys.Vec3D;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
public class EntityItem extends Entity implements TraceableEntity {
|
||||
|
||||
private static final DataWatcherObject<ItemStack> DATA_ITEM = DataWatcher.defineId(EntityItem.class, DataWatcherRegistry.ITEM_STACK);
|
||||
@@ -47,6 +56,7 @@
|
||||
@@ -51,6 +60,7 @@
|
||||
@Nullable
|
||||
public UUID target;
|
||||
public final float bobOffs;
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
public EntityItem(EntityTypes<? extends EntityItem> entitytypes, World world) {
|
||||
super(entitytypes, world);
|
||||
@@ -125,12 +135,15 @@
|
||||
@@ -132,12 +142,15 @@
|
||||
@Override
|
||||
public void tick() {
|
||||
if (this.getItem().isEmpty()) {
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
this.xo = this.getX();
|
||||
this.yo = this.getY();
|
||||
@@ -180,9 +193,11 @@
|
||||
@@ -186,9 +199,11 @@
|
||||
this.mergeWithNeighbours();
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
this.hasImpulse |= this.updateInWaterStateAndDoFluidPushing();
|
||||
if (!this.level().isClientSide) {
|
||||
@@ -194,7 +209,13 @@
|
||||
@@ -200,7 +215,13 @@
|
||||
}
|
||||
|
||||
if (!this.level().isClientSide && this.age >= 6000) {
|
||||
@@ -71,7 +71,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -277,11 +298,16 @@
|
||||
@@ -283,11 +304,16 @@
|
||||
}
|
||||
|
||||
private static void merge(EntityItem entityitem, ItemStack itemstack, EntityItem entityitem1, ItemStack itemstack1) {
|
||||
@@ -89,7 +89,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
@@ -302,12 +328,17 @@
|
||||
@@ -308,12 +334,17 @@
|
||||
} else if (this.level().isClientSide) {
|
||||
return true;
|
||||
} else {
|
||||
@@ -108,16 +108,16 @@
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -354,7 +385,7 @@
|
||||
@@ -365,7 +396,7 @@
|
||||
}
|
||||
|
||||
this.setItem(ItemStack.of(nbttagcompound1));
|
||||
if (this.getItem().isEmpty()) {
|
||||
- this.discard();
|
||||
+ this.discard(null); // CraftBukkit - add Bukkit remove cause
|
||||
}
|
||||
|
||||
}
|
||||
@@ -366,10 +397,50 @@
|
||||
@@ -377,10 +408,50 @@
|
||||
Item item = itemstack.getItem();
|
||||
int i = itemstack.getCount();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user