1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-26 04:25:15 +01:00

Payment for tilling dirt

This commit is contained in:
FireML 2023-04-01 11:45:54 +01:00
parent 0ca90fbcb5
commit 7eeab85f04

View File

@ -488,7 +488,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();