summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityItem.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityItem.java')
-rw-r--r--src/main/java/net/minecraft/server/EntityItem.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/main/java/net/minecraft/server/EntityItem.java b/src/main/java/net/minecraft/server/EntityItem.java
index ab283236..50299f72 100644
--- a/src/main/java/net/minecraft/server/EntityItem.java
+++ b/src/main/java/net/minecraft/server/EntityItem.java
@@ -17,7 +17,7 @@ public class EntityItem extends Entity {
public EntityItem(World world, double d0, double d1, double d2, ItemStack itemstack) {
super(world);
- this.a(0.25F, 0.25F);
+ this.b(0.25F, 0.25F);
this.height = this.width / 2.0F;
this.a(d0, d1, d2);
this.a = itemstack;
@@ -25,12 +25,15 @@ public class EntityItem extends Entity {
this.motX = (double) ((float) (Math.random() * 0.20000000298023224D - 0.10000000149011612D));
this.motY = 0.20000000298023224D;
this.motZ = (double) ((float) (Math.random() * 0.20000000298023224D - 0.10000000149011612D));
- this.bg = false;
+ }
+
+ protected boolean l() {
+ return false;
}
public EntityItem(World world) {
super(world);
- this.a(0.25F, 0.25F);
+ this.b(0.25F, 0.25F);
this.height = this.width / 2.0F;
}
@@ -76,7 +79,7 @@ public class EntityItem extends Entity {
++this.e;
++this.b;
if (this.b >= 6000) {
- this.C();
+ this.D();
}
}
@@ -167,10 +170,10 @@ public class EntityItem extends Entity {
}
public boolean a(Entity entity, int i) {
- this.R();
+ this.W();
this.f -= i;
if (this.f <= 0) {
- this.C();
+ this.D();
}
return false;
@@ -203,7 +206,7 @@ public class EntityItem extends Entity {
if (!event.isCancelled() && entityhuman.inventory.a(this.a)) {
this.world.a(this, "random.pop", 0.2F, ((this.random.nextFloat() - this.random.nextFloat()) * 0.7F + 1.0F) * 2.0F);
entityhuman.b(this, i);
- this.C();
+ this.D();
}
}
// CraftBukkit end