mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-19 15:33:19 +01:00
Fix chorus plants only straight growing up
This commit is contained in:
parent
1be3bd058f
commit
f8e38f2d9f
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
|||
+ // world.setTypeAndData(blockposition, Blocks.CHORUS_PLANT.getBlockData(), 2);
|
||||
+ // this.a(world, blockposition1, i);
|
||||
+ // CraftBukkit start - add event
|
||||
+ BlockPosition target = blockposition.up();
|
||||
+ BlockPosition target = blockposition1;
|
||||
+ if (CraftEventFactory.handleBlockSpreadEvent(
|
||||
+ world.getWorld().getBlockAt(target.getX(), target.getY(), target.getZ()),
|
||||
+ world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()),
|
||||
|
@ -40,7 +40,7 @@
|
|||
- flag2 = true;
|
||||
+ // CraftBukkit start - add event
|
||||
+ // this.a(world, blockposition2, i + 1);
|
||||
+ BlockPosition target = blockposition1;
|
||||
+ BlockPosition target = blockposition2;
|
||||
+ if (CraftEventFactory.handleBlockSpreadEvent(
|
||||
+ world.getWorld().getBlockAt(target.getX(), target.getY(), target.getZ()),
|
||||
+ world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()),
|
||||
|
|
Loading…
Reference in a new issue