Skip to content

Commit ca6273e

Browse files
committed
Fixed EventPriority
1 parent c401407 commit ca6273e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/com/creeperevents/oggehej/BlockListener.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import org.bukkit.block.Block;
99
import org.bukkit.entity.EntityType;
1010
import org.bukkit.event.EventHandler;
11+
import org.bukkit.event.EventPriority;
1112
import org.bukkit.event.Listener;
1213
import org.bukkit.event.block.BlockBreakEvent;
1314
import org.bukkit.event.entity.EntityExplodeEvent;
@@ -21,7 +22,7 @@ public class BlockListener implements Listener
2122
}
2223

2324
@SuppressWarnings("deprecation")
24-
@EventHandler(ignoreCancelled = true)
25+
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
2526
public void onEntityExplode(EntityExplodeEvent event)
2627
{
2728
Iterator<Block> it = event.blockList().iterator();
@@ -46,7 +47,7 @@ public void onEntityExplode(EntityExplodeEvent event)
4647
}
4748
}
4849

49-
@EventHandler(ignoreCancelled = true)
50+
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
5051
public void onBlockBreak(BlockBreakEvent event)
5152
{
5253
StorageHandler storage = plugin.getStorage();
@@ -58,7 +59,7 @@ public void onBlockBreak(BlockBreakEvent event)
5859
*
5960
* @param loc Location of the block
6061
* @param source Location of the explosion source
61-
* @param explisive The EntityType of the explosion cause
62+
* @param explosive The EntityType of the explosion cause
6263
*/
6364
@SuppressWarnings("deprecation")
6465
private void explodeBlock(Location loc, Location source, EntityType explosive)

0 commit comments

Comments
 (0)