mirror of
https://github.com/ColdeZhang/Dominion.git
synced 2025-03-12 10:16:39 +08:00
修复了由于调用了paper特殊api导致在spigot下有概率报错问题
This commit is contained in:
parent
6a3f9fbd20
commit
f08e0f51e2
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>cn.lunadeer</groupId>
|
||||
<artifactId>Dominion</artifactId>
|
||||
<version>1.35.3-beta</version>
|
||||
<version>1.35.4-beta</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Dominion</name>
|
||||
|
@ -103,7 +103,7 @@ public class PlayerEvents implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST) // bed
|
||||
public void onBedUse(PlayerInteractEvent event) {
|
||||
if (!event.getAction().isRightClick()) {
|
||||
if (event.getAction() != Action.RIGHT_CLICK_BLOCK) {
|
||||
return;
|
||||
}
|
||||
Player bukkitPlayer = event.getPlayer();
|
||||
@ -165,7 +165,7 @@ public class PlayerEvents implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST) // button
|
||||
public void onButton(PlayerInteractEvent event) {
|
||||
if (!event.getAction().isRightClick()) {
|
||||
if (event.getAction() != Action.RIGHT_CLICK_BLOCK) {
|
||||
return;
|
||||
}
|
||||
Player player = event.getPlayer();
|
||||
@ -182,7 +182,7 @@ public class PlayerEvents implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST) // cake
|
||||
public void eatCake(PlayerInteractEvent event) {
|
||||
if (!event.getAction().isRightClick()) {
|
||||
if (event.getAction() != Action.RIGHT_CLICK_BLOCK) {
|
||||
return;
|
||||
}
|
||||
Block block = event.getClickedBlock();
|
||||
@ -280,7 +280,7 @@ public class PlayerEvents implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST) // comparer
|
||||
public void comparerChange(PlayerInteractEvent event) {
|
||||
if (!event.getAction().isRightClick()) {
|
||||
if (event.getAction() != Action.RIGHT_CLICK_BLOCK) {
|
||||
return;
|
||||
}
|
||||
Block block = event.getClickedBlock();
|
||||
@ -298,7 +298,7 @@ public class PlayerEvents implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST) // door
|
||||
public void doorUse(PlayerInteractEvent event) {
|
||||
if (!event.getAction().isRightClick()) {
|
||||
if (event.getAction() != Action.RIGHT_CLICK_BLOCK) {
|
||||
return;
|
||||
}
|
||||
Block block = event.getClickedBlock();
|
||||
@ -340,7 +340,7 @@ public class PlayerEvents implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST) // edit sign
|
||||
public void onSignOpen(PlayerInteractEvent event) {
|
||||
if (!event.getAction().isRightClick()) {
|
||||
if (event.getAction() != Action.RIGHT_CLICK_BLOCK) {
|
||||
return;
|
||||
}
|
||||
Player player = event.getPlayer();
|
||||
@ -444,7 +444,7 @@ public class PlayerEvents implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST) // honey
|
||||
public void honeyInteractive(PlayerInteractEvent event) {
|
||||
if (!event.getAction().isRightClick()) {
|
||||
if (event.getAction() != Action.RIGHT_CLICK_BLOCK) {
|
||||
return;
|
||||
}
|
||||
Block block = event.getClickedBlock();
|
||||
@ -502,7 +502,7 @@ public class PlayerEvents implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST) // lever
|
||||
public void onLever(PlayerInteractEvent event) {
|
||||
if (!event.getAction().isRightClick()) {
|
||||
if (event.getAction() != Action.RIGHT_CLICK_BLOCK) {
|
||||
return;
|
||||
}
|
||||
Block block = event.getClickedBlock();
|
||||
|
Loading…
Reference in New Issue
Block a user