mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-28 03:57:35 +01:00
Ignore cancelled right click events
This commit is contained in:
parent
24cee62ea8
commit
10ba87e552
@ -242,7 +242,7 @@ public class EventListen implements Listener {
|
|||||||
checkCreationEvent(event);
|
checkCreationEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler(ignoreCancelled = true)
|
||||||
public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {
|
public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {
|
||||||
NPC npc = npcRegistry.getNPC(event.getRightClicked());
|
NPC npc = npcRegistry.getNPC(event.getRightClicked());
|
||||||
if (npc == null) {
|
if (npc == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user