Fix IndexOutOfBoundsException on BlockFertilizeEvent

This commit is contained in:
SirYwell 2025-02-24 16:59:23 +01:00
parent a0a3d8828a
commit 9127e472b8
No known key found for this signature in database

View File

@ -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) {