mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-22 14:41:48 +01:00
Fixed infinite exp with block breaking in MMOCore
This commit is contained in:
parent
fc4f652f5d
commit
37cbccde05
@ -153,7 +153,13 @@ public class ItemUse implements Listener {
|
||||
event.setDamage(result.getDamage());
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
/*
|
||||
* Event priority set to LOW to fix an infinite-exp glitch with
|
||||
* MMOCore. MMOCore experience source listens on HIGH and must be
|
||||
* higher than this event otherwise the exp is given even if the
|
||||
* block is not broken.
|
||||
*/
|
||||
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
|
||||
public void specialToolAbilities(BlockBreakEvent event) {
|
||||
Player player = event.getPlayer();
|
||||
Block block = event.getBlock();
|
||||
|
Loading…
Reference in New Issue
Block a user