8
8
import org .bukkit .block .Block ;
9
9
import org .bukkit .entity .EntityType ;
10
10
import org .bukkit .event .EventHandler ;
11
+ import org .bukkit .event .EventPriority ;
11
12
import org .bukkit .event .Listener ;
12
13
import org .bukkit .event .block .BlockBreakEvent ;
13
14
import org .bukkit .event .entity .EntityExplodeEvent ;
@@ -21,7 +22,7 @@ public class BlockListener implements Listener
21
22
}
22
23
23
24
@ SuppressWarnings ("deprecation" )
24
- @ EventHandler (ignoreCancelled = true )
25
+ @ EventHandler (ignoreCancelled = true , priority = EventPriority . LOWEST )
25
26
public void onEntityExplode (EntityExplodeEvent event )
26
27
{
27
28
Iterator <Block > it = event .blockList ().iterator ();
@@ -46,7 +47,7 @@ public void onEntityExplode(EntityExplodeEvent event)
46
47
}
47
48
}
48
49
49
- @ EventHandler (ignoreCancelled = true )
50
+ @ EventHandler (ignoreCancelled = true , priority = EventPriority . LOWEST )
50
51
public void onBlockBreak (BlockBreakEvent event )
51
52
{
52
53
StorageHandler storage = plugin .getStorage ();
@@ -58,7 +59,7 @@ public void onBlockBreak(BlockBreakEvent event)
58
59
*
59
60
* @param loc Location of the block
60
61
* @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
62
63
*/
63
64
@ SuppressWarnings ("deprecation" )
64
65
private void explodeBlock (Location loc , Location source , EntityType explosive )
0 commit comments