mirror of
https://github.com/Zrips/Jobs.git
synced 2025-02-15 20:01:43 +01:00
Merge pull request #1584 from FireML/farmland-payment
Allow payment for tilling dirt
This commit is contained in:
commit
95e8b3b208
@ -485,7 +485,8 @@ public final class JobsPaymentListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
// A tool should not trigger a BlockPlaceEvent (fixes stripping logs bug #940)
|
// 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;
|
return;
|
||||||
|
|
||||||
Block block = event.getBlock();
|
Block block = event.getBlock();
|
||||||
|
Loading…
Reference in New Issue
Block a user