mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
[Bleeding] Added BlockGrowEvent. Addresses BUKKIT-104
This commit is contained in:
1 parent
847e1c62c5
commit
7792156fb2
7 files changed
+29
-15
No files matched your search
@@ -25,7 +25,7 @@ public class BlockReed 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