mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
Update to Minecraft 1.13-pre7
This commit is contained in:
@@ -8,28 +8,22 @@
|
||||
+
|
||||
public class BlockCrops extends BlockPlant implements IBlockFragilePlantElement {
|
||||
|
||||
public static final BlockStateInteger AGE = BlockStateInteger.of("age", 0, 7);
|
||||
@@ -53,7 +55,10 @@
|
||||
float f = a((Block) this, world, blockposition);
|
||||
public static final BlockStateInteger AGE = BlockProperties.V;
|
||||
@@ -49,7 +51,7 @@
|
||||
float f = a((Block) this, (IBlockAccess) world, blockposition);
|
||||
|
||||
if (random.nextInt((int) (25.0F / f) + 1) == 0) {
|
||||
- world.setTypeAndData(blockposition, this.setAge(i + 1), 2);
|
||||
+ // CraftBukkit start
|
||||
+ IBlockData data = this.setAge(i + 1);
|
||||
+ CraftEventFactory.handleBlockGrowEvent(world, blockposition.getX(), blockposition.getY(), blockposition.getZ(), this, toLegacyData(data));
|
||||
+ // CraftBukkit end
|
||||
+ CraftEventFactory.handleBlockGrowEvent(world, blockposition, this.setAge(i + 1), 2); // CraftBukkit
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -68,7 +73,10 @@
|
||||
@@ -64,7 +66,7 @@
|
||||
i = j;
|
||||
}
|
||||
|
||||
- world.setTypeAndData(blockposition, this.setAge(i), 2);
|
||||
+ // CraftBukkit start
|
||||
+ IBlockData data = this.setAge(i);
|
||||
+ CraftEventFactory.handleBlockGrowEvent(world, blockposition.getX(), blockposition.getY(), blockposition.getZ(), this, toLegacyData(data));
|
||||
+ // CraftBukkit end
|
||||
+ CraftEventFactory.handleBlockGrowEvent(world, blockposition, this.setAge(i), 2); // CraftBukkit
|
||||
}
|
||||
|
||||
protected int b(World world) {
|
||||
protected int a(World world) {
|
||||
|
Reference in New Issue
Block a user