mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 11:13:45 +01:00 
			
		
		
		
	Fix IndexOutOfBoundsException on BlockFertilizeEvent (#4609)
This commit is contained in:
		@@ -134,7 +134,7 @@ public class BlockEventListener117 implements Listener {
 | 
			
		||||
    public void onBlockFertilize(BlockFertilizeEvent event) {
 | 
			
		||||
        Block block = event.getBlock();
 | 
			
		||||
        List<org.bukkit.block.BlockState> blocks = event.getBlocks();
 | 
			
		||||
        Location location = BukkitUtil.adapt(blocks.get(0).getLocation());
 | 
			
		||||
        Location location = BukkitUtil.adapt(block.getLocation());
 | 
			
		||||
 | 
			
		||||
        PlotArea area = location.getPlotArea();
 | 
			
		||||
        if (area == null) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user