summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/BlockSnow.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockSnow.java')
-rw-r--r--src/main/java/net/minecraft/server/BlockSnow.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/main/java/net/minecraft/server/BlockSnow.java b/src/main/java/net/minecraft/server/BlockSnow.java
index b4a1df41..308eb977 100644
--- a/src/main/java/net/minecraft/server/BlockSnow.java
+++ b/src/main/java/net/minecraft/server/BlockSnow.java
@@ -46,7 +46,7 @@ public class BlockSnow extends Block {
if (!this.canPlace(world, i, j, k)) {
this.b(world, i, j, k, world.getData(i, j, k), 0);
world.setRawTypeId(i, j, k, 0); // CraftBukkit
- world.notify(i, j, k); // CraftBukkit - Notfiy clients of the reversion
+ world.notify(i, j, k); // CraftBukkit - Notify clients of the reversion
return false;
} else {
return true;
@@ -54,31 +54,19 @@ public class BlockSnow extends Block {
}
public void a(World world, EntityHuman entityhuman, int i, int j, int k, int l) {
- /* CraftBukkit start - This logic is exactly the same as in the superclass method, so defer it there
int i1 = Item.SNOW_BALL.id;
float f = 0.7F;
double d0 = (double) (world.random.nextFloat() * f) + (double) (1.0F - f) * 0.5D;
double d1 = (double) (world.random.nextFloat() * f) + (double) (1.0F - f) * 0.5D;
double d2 = (double) (world.random.nextFloat() * f) + (double) (1.0F - f) * 0.5D;
EntityItem entityitem = new EntityItem(world, (double) i + d0, (double) j + d1, (double) k + d2, new ItemStack(i1, 1, 0));
- // This is done so that getDrops() in the BlockBreakEvent works properly.
entityitem.pickupDelay = 10;
world.addEntity(entityitem);
- */
- this.doActualDrop(world, i, j, k);
- // CraftBukkit end
world.setTypeId(i, j, k, 0);
entityhuman.a(StatisticList.C[this.id], 1);
}
- // CraftBukkit start - Calculate drops
- public java.util.ArrayList<ItemStack> calculateDrops(World world, EntityHuman entityhuman, int i, int j, int k, int l) {
- this.a(world, i, j, k, new ItemStack(Item.SNOW_BALL.id, 1, 0));
- return this.dropList;
- }
- // CraftBukkit end
-
public int getDropType(int i, Random random, int j) {
return Item.SNOW_BALL.id;
}