From 7eeab85f04fead37a40f9a7a09cc74d2ffc06669 Mon Sep 17 00:00:00 2001 From: FireML <106587317+FireML@users.noreply.github.com> Date: Sat, 1 Apr 2023 11:45:54 +0100 Subject: [PATCH] Payment for tilling dirt --- .../com/gamingmesh/jobs/listeners/JobsPaymentListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java index 8eb06e19..2393b896 100644 --- a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java +++ b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java @@ -488,7 +488,8 @@ public final class JobsPaymentListener implements Listener { return; // A tool should not trigger a BlockPlaceEvent (fixes stripping logs bug #940) - if (CMIMaterial.get(event.getItemInHand().getType()).isTool()) + // Allow this to trigger with a hoe so players can get paid for farmland. + if (CMIMaterial.get(event.getItemInHand().getType()).isTool() && !event.getItemInHand().getType().toString().endsWith("_HOE")) return; Block block = event.getBlock();