This repository was archived by the owner on Oct 20, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/java/org/ships/implementation/paper/event Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change
1
+ /src /main /CoreToPaper.iml
Original file line number Diff line number Diff line change 3
3
import com .destroystokyo .paper .event .block .BlockDestroyEvent ;
4
4
import org .bukkit .event .EventHandler ;
5
5
import org .bukkit .event .Listener ;
6
+ import org .core .event .EventPriority ;
6
7
import org .core .world .position .block .details .BlockDetails ;
7
8
import org .core .world .position .impl .sync .SyncBlockPosition ;
8
9
import org .ships .implementation .bukkit .event .BukkitListener ;
13
14
public class PaperListener implements Listener {
14
15
15
16
@ EventHandler
16
- public void onBlockBreak (BlockDestroyEvent event ){
17
+ public void onBlockBreak (BlockDestroyEvent event ) {
17
18
SyncBlockPosition position = new BBlockPosition (event .getBlock ());
18
19
BlockDetails details = new BBlockDetails (event .getNewState (), false );
19
20
PBlockChangeEvent .BlockBreakEvent event2 = new PBlockChangeEvent .BlockBreakEvent (position , position .getBlockDetails (), details );
20
- BukkitListener .call (event2 );
21
+ BukkitListener .call (EventPriority . IGNORE , event2 );
21
22
event .setCancelled (event2 .isCancelled ());
22
23
}
23
24
}
You can’t perform that action at this time.
0 commit comments