mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 10:12:06 -07:00
[Bleeding] Added BlockGrowEvent. Addresses BUKKIT-104
This commit is contained in:
@@ -26,7 +26,7 @@ public class BlockCactus extends Block {
|
||||
int i1 = world.getData(i, j, k);
|
||||
|
||||
if (i1 == 15) {
|
||||
world.setTypeId(i, j + 1, k, this.id);
|
||||
org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(world, i, j + 1, k, this.id, 0); // CraftBukkit
|
||||
world.setData(i, j, k, 0);
|
||||
} else {
|
||||
world.setData(i, j, k, i1 + 1);
|
||||
|
Reference in New Issue
Block a user