summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/BlockStem.java
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2012-02-29 22:31:04 +0100
committerNathan Adams <dinnerbone@dinnerbone.com>2012-03-01 01:12:41 +0000
commit33ba9f0a2f56bdba89574d25b44905af95480dbe (patch)
treedd446975bfd0406c3deac50c0bc1e156ca737698 /src/main/java/net/minecraft/server/BlockStem.java
parent8524ff8ef7be2d386e98f65fdca14c0157e8309f (diff)
downloadcraftbukkit-33ba9f0a2f56bdba89574d25b44905af95480dbe.tar
craftbukkit-33ba9f0a2f56bdba89574d25b44905af95480dbe.tar.gz
craftbukkit-33ba9f0a2f56bdba89574d25b44905af95480dbe.tar.lz
craftbukkit-33ba9f0a2f56bdba89574d25b44905af95480dbe.tar.xz
craftbukkit-33ba9f0a2f56bdba89574d25b44905af95480dbe.zip
Updated to rename revision 02
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockStem.java')
-rw-r--r--src/main/java/net/minecraft/server/BlockStem.java21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/main/java/net/minecraft/server/BlockStem.java b/src/main/java/net/minecraft/server/BlockStem.java
index 8736f2cd..44687703 100644
--- a/src/main/java/net/minecraft/server/BlockStem.java
+++ b/src/main/java/net/minecraft/server/BlockStem.java
@@ -4,11 +4,11 @@ import java.util.Random;
public class BlockStem extends BlockFlower {
- private Block a;
+ private Block blockFruit;
protected BlockStem(int i, Block block) {
super(i, 111);
- this.a = block;
+ this.blockFruit = block;
this.a(true);
float f = 0.125F;
@@ -28,21 +28,22 @@ public class BlockStem extends BlockFlower {
int l = world.getData(i, j, k);
if (l < 7) {
- org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, i, j, k, this.id, ++l); // CraftBukkit
+ ++l;
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, i, j, k, this.id, l); // CraftBukkit
} else {
- if (world.getTypeId(i - 1, j, k) == this.a.id) {
+ if (world.getTypeId(i - 1, j, k) == this.blockFruit.id) {
return;
}
- if (world.getTypeId(i + 1, j, k) == this.a.id) {
+ if (world.getTypeId(i + 1, j, k) == this.blockFruit.id) {
return;
}
- if (world.getTypeId(i, j, k - 1) == this.a.id) {
+ if (world.getTypeId(i, j, k - 1) == this.blockFruit.id) {
return;
}
- if (world.getTypeId(i, j, k + 1) == this.a.id) {
+ if (world.getTypeId(i, j, k + 1) == this.blockFruit.id) {
return;
}
@@ -69,7 +70,7 @@ public class BlockStem extends BlockFlower {
int l1 = world.getTypeId(j1, j - 1, k1);
if (world.getTypeId(j1, j, k1) == 0 && (l1 == Block.SOIL.id || l1 == Block.DIRT.id || l1 == Block.GRASS.id)) {
- org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, j1, j, k1, this.a.id, 0); // CraftBukkit
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, j1, j, k1, this.blockFruit.id, 0); // CraftBukkit
}
}
}
@@ -147,11 +148,11 @@ public class BlockStem extends BlockFlower {
if (!world.isStatic) {
Item item = null;
- if (this.a == Block.PUMPKIN) {
+ if (this.blockFruit == Block.PUMPKIN) {
item = Item.PUMPKIN_SEEDS;
}
- if (this.a == Block.MELON) {
+ if (this.blockFruit == Block.MELON) {
item = Item.MELON_SEEDS;
}