mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 20:16:13 +01:00
Should fix money dupping issue when interacted block but denied, #487
This commit is contained in:
parent
01898220cc
commit
030e6b2890
@ -1571,7 +1571,7 @@ public class JobsPaymentListener implements Listener {
|
||||
return;
|
||||
CMIMaterial cmat = CMIMaterial.get(block);
|
||||
|
||||
if (Version.isCurrentEqualOrHigher(Version.v1_14_R1)) {
|
||||
if (Version.isCurrentEqualOrHigher(Version.v1_14_R1) && !event.useInteractedBlock().equals(org.bukkit.event.Event.Result.DENY)) {
|
||||
JobsPlayer jPlayer = Jobs.getPlayerManager().getJobsPlayer(event.getPlayer());
|
||||
if (jPlayer != null) {
|
||||
if (cmat.equals(CMIMaterial.COMPOSTER)) {
|
||||
|
Loading…
Reference in New Issue
Block a user