mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Prevent Rightclick on Interact Signs
This commit is contained in:
parent
87c65104c1
commit
19548afbbc
@ -163,7 +163,11 @@ public class PlayerListener implements Listener {
|
||||
// Trigger InteractTrigger
|
||||
InteractTrigger trigger = InteractTrigger.get(clickedBlock, gworld);
|
||||
if (trigger != null) {
|
||||
trigger.onTrigger(player);
|
||||
if (event.getAction() == Action.LEFT_CLICK_BLOCK) {
|
||||
trigger.onTrigger(player);
|
||||
} else {
|
||||
p.msg(player, p.language.get("Error_Leftklick"));
|
||||
}
|
||||
}
|
||||
|
||||
// Class Signs
|
||||
|
Loading…
Reference in New Issue
Block a user