@@ -12,7 +12,21 @@
|
||||
public class BlockSoil extends Block {
|
||||
|
||||
public static final BlockStateInteger MOISTURE = BlockProperties.ai;
|
||||
@@ -63,14 +68,37 @@
|
||||
@@ -51,26 +56,49 @@
|
||||
|
||||
if (!a((IWorldReader) world, blockposition) && !world.isRainingAt(blockposition.up())) {
|
||||
if (i > 0) {
|
||||
- world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockSoil.MOISTURE, Integer.valueOf(i - 1)), 2);
|
||||
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleMoistureChangeEvent(world, blockposition, (IBlockData) iblockdata.set(BlockSoil.MOISTURE, Integer.valueOf(i - 1)), 2); // CraftBukkit
|
||||
} else if (!a((IBlockAccess) world, blockposition)) {
|
||||
b(iblockdata, world, blockposition);
|
||||
}
|
||||
} else if (i < 7) {
|
||||
- world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockSoil.MOISTURE, Integer.valueOf(7)), 2);
|
||||
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleMoistureChangeEvent(world, blockposition, (IBlockData) iblockdata.set(BlockSoil.MOISTURE, Integer.valueOf(7)), 2); // CraftBukkit
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void fallOn(World world, BlockPosition blockposition, Entity entity, float f) {
|
||||
|
||||
Reference in New Issue
Block a user