diff options
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemSeeds.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemSeeds.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/net/minecraft/server/ItemSeeds.java b/src/main/java/net/minecraft/server/ItemSeeds.java index 70e72595..6acf4f3f 100644 --- a/src/main/java/net/minecraft/server/ItemSeeds.java +++ b/src/main/java/net/minecraft/server/ItemSeeds.java @@ -9,11 +9,11 @@ import org.bukkit.event.block.BlockPlaceEvent; public class ItemSeeds extends Item { - private int a; + private int id; public ItemSeeds(int i, int j) { super(i); - this.a = j; + this.id = j; } public boolean a(ItemStack itemstack, EntityHuman entityhuman, World world, int i, int j, int k, int l) { @@ -23,12 +23,12 @@ public class ItemSeeds extends Item { int i1 = world.getTypeId(i, j, k); if (i1 == Block.SOIL.id && world.isEmpty(i, j + 1, k)) { - BlockState blockState = CraftBlockState.getBlockState( world, i, j + 1, k); // CraftBukkit + BlockState blockState = CraftBlockState.getBlockState(world, i, j + 1, k); // CraftBukkit - world.e(i, j + 1, k, this.a); + world.setTypeId(i, j + 1, k, this.id); // CraftBukkit start - seeds - BlockPlaceEvent event = CraftEventFactory.callBlockPlaceEvent(world, entityhuman, blockState, i, j, k, this.a); + BlockPlaceEvent event = CraftEventFactory.callBlockPlaceEvent(world, entityhuman, blockState, i, j, k, this.id); if (event.isCancelled() || !event.canBuild()) { event.getBlockPlaced().setTypeId(0); return false; |