mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -07:00
Updated CraftBukkit to 1.2
This commit is contained in:
@@ -16,18 +16,18 @@ public class BlockNetherWart extends BlockFlower {
|
||||
return i == Block.SOUL_SAND.id;
|
||||
}
|
||||
|
||||
public boolean f(World world, int i, int j, int k) {
|
||||
return this.d(world.getTypeId(i, j - 1, k));
|
||||
}
|
||||
|
||||
public void a(World world, int i, int j, int k, Random random) {
|
||||
int l = world.getData(i, j, k);
|
||||
|
||||
if (l < 3) {
|
||||
WorldChunkManager worldchunkmanager = world.getWorldChunkManager();
|
||||
BiomeBase biomebase = world.getBiome(i, k);
|
||||
|
||||
if (worldchunkmanager != null) {
|
||||
BiomeBase biomebase = worldchunkmanager.getBiome(i, k);
|
||||
|
||||
if (biomebase instanceof BiomeHell && random.nextInt(15) == 0) {
|
||||
org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, i, j, k, this.id, ++l); // CraftBukkit
|
||||
}
|
||||
if (biomebase instanceof BiomeHell && random.nextInt(10) == 0) {
|
||||
org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, i, j, k, this.id, ++l); // CraftBukkit
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user