mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-11-10 10:09:55 +01:00
Fixed the loader block is duped when breaking it (#102)
This commit is contained in:
parent
eeb2f4957c
commit
0cc90156a8
@ -66,9 +66,11 @@ public final class BlocksListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onLoaderBreak(BlockBreakEvent e) {
|
||||
if (handleLoaderBreak(e.getBlock(), e.getPlayer().getGameMode() != GameMode.CREATIVE))
|
||||
if (handleLoaderBreak(e.getBlock(), e.getPlayer().getGameMode() != GameMode.CREATIVE)) {
|
||||
e.setCancelled(true);
|
||||
Locale.BROKE_LOADER.send(e.getPlayer());
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onLoaderExplode(EntityExplodeEvent e) {
|
||||
|
Loading…
Reference in New Issue
Block a user