summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/BlockOre.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockOre.java')
-rw-r--r--src/main/java/net/minecraft/server/BlockOre.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main/java/net/minecraft/server/BlockOre.java b/src/main/java/net/minecraft/server/BlockOre.java
index 7448d166..fb1a1427 100644
--- a/src/main/java/net/minecraft/server/BlockOre.java
+++ b/src/main/java/net/minecraft/server/BlockOre.java
@@ -4,13 +4,13 @@ import java.util.Random;
public class BlockOre extends Block {
- public BlockOre(int i, int j) {
- super(i, j, Material.STONE);
+ public BlockOre(int i) {
+ super(i, Material.STONE);
this.a(CreativeModeTab.b);
}
public int getDropType(int i, Random random, int j) {
- return this.id == Block.COAL_ORE.id ? Item.COAL.id : (this.id == Block.DIAMOND_ORE.id ? Item.DIAMOND.id : (this.id == Block.LAPIS_ORE.id ? Item.INK_SACK.id : (this.id == Block.EMERALD_ORE.id ? Item.EMERALD.id : this.id)));
+ return this.id == Block.COAL_ORE.id ? Item.COAL.id : (this.id == Block.DIAMOND_ORE.id ? Item.DIAMOND.id : (this.id == Block.LAPIS_ORE.id ? Item.INK_SACK.id : (this.id == Block.EMERALD_ORE.id ? Item.EMERALD.id : (this.id == Block.QUARTZ_ORE.id ? Item.QUARTZ.id : this.id))));
}
public int a(Random random) {
@@ -45,9 +45,11 @@ public class BlockOre extends Block {
j1 = MathHelper.nextInt(world.random, 3, 7);
} else if (this.id == Block.LAPIS_ORE.id) {
j1 = MathHelper.nextInt(world.random, 2, 5);
+ } else if (this.id == Block.QUARTZ_ORE.id) {
+ j1 = MathHelper.nextInt(world.random, 2, 5);
}
- this.f(world, i, j, k, j1);
+ this.j(world, i, j, k, j1);
} */
}
@@ -63,6 +65,8 @@ public class BlockOre extends Block {
j1 = MathHelper.nextInt(world.random, 3, 7);
} else if (this.id == Block.LAPIS_ORE.id) {
j1 = MathHelper.nextInt(world.random, 2, 5);
+ } else if (this.id == Block.QUARTZ_ORE.id) {
+ j1 = MathHelper.nextInt(world.random, 2, 5);
}
return j1;