1
0
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:
montlikadani 2019-07-26 09:43:04 +02:00
parent 01898220cc
commit 030e6b2890

View File

@ -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)) {