1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-30 21:07:48 +01:00

Allow payment while fishing from a boat with disablePaymentIfRiding

This commit is contained in:
Zrips 2021-11-27 15:31:28 +02:00
parent 63a8abc749
commit 33b4dfe6ce

View File

@ -526,7 +526,7 @@ public final class JobsPaymentListener implements Listener {
return;
// check if player is riding
if (Jobs.getGCManager().disablePaymentIfRiding && player.isInsideVehicle())
if (Jobs.getGCManager().disablePaymentIfRiding && player.isInsideVehicle() && !player.getVehicle().getType().equals(EntityType.BOAT))
return;
if (!payForItemDurabilityLoss(player))