mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-03-28 20:59:44 +01:00
Fix IndexOutOfBoundsException on BlockFertilizeEvent
This commit is contained in:
parent
a0a3d8828a
commit
9127e472b8
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user