diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-11-20 00:01:14 -0800 |
---|---|---|
committer | Erik Broes <erikbroes@ripe.net> | 2011-11-20 00:01:33 -0800 |
commit | 345ea36c7bb3383c6e4825355d0043a646194eaa (patch) | |
tree | df116b57d92315c0a13c2fdc87d792b031c7239a /src/main/java/net/minecraft/server/BlockSoil.java | |
parent | 589f66bd1b766dc1fdd737ee885304196a2ed86a (diff) | |
download | craftbukkit-345ea36c7bb3383c6e4825355d0043a646194eaa.tar craftbukkit-345ea36c7bb3383c6e4825355d0043a646194eaa.tar.gz craftbukkit-345ea36c7bb3383c6e4825355d0043a646194eaa.tar.lz craftbukkit-345ea36c7bb3383c6e4825355d0043a646194eaa.tar.xz craftbukkit-345ea36c7bb3383c6e4825355d0043a646194eaa.zip |
Update for 1.0.0
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockSoil.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockSoil.java | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/main/java/net/minecraft/server/BlockSoil.java b/src/main/java/net/minecraft/server/BlockSoil.java index 54509332..9afaf178 100644 --- a/src/main/java/net/minecraft/server/BlockSoil.java +++ b/src/main/java/net/minecraft/server/BlockSoil.java @@ -14,7 +14,7 @@ public class BlockSoil extends Block { this.textureId = 87; this.a(true); this.a(0.0F, 0.0F, 0.0F, 1.0F, 0.9375F, 1.0F); - this.f(255); + this.g(255); } public AxisAlignedBB e(World world, int i, int j, int k) { @@ -34,18 +34,16 @@ public class BlockSoil extends Block { } public void a(World world, int i, int j, int k, Random random) { - if (random.nextInt(5) == 0) { - if (!this.h(world, i, j, k) && !world.s(i, j + 1, k)) { - int l = world.getData(i, j, k); - - if (l > 0) { - world.setData(i, j, k, l - 1); - } else if (!this.g(world, i, j, k)) { - world.setTypeId(i, j, k, Block.DIRT.id); - } - } else { - world.setData(i, j, k, 7); + if (!this.h(world, i, j, k) && !world.v(i, j + 1, k)) { + int l = world.getData(i, j, k); + + if (l > 0) { + world.setData(i, j, k, l - 1); + } else if (!this.g(world, i, j, k)) { + world.setTypeId(i, j, k, Block.DIRT.id); } + } else { + world.setData(i, j, k, 7); } } @@ -108,7 +106,7 @@ public class BlockSoil extends Block { } } - public int a(int i, Random random) { - return Block.DIRT.a(0, random); + public int a(int i, Random random, int j) { + return Block.DIRT.a(0, random, j); } } |