diff --git a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java index a15e2439..ddba4ee1 100644 --- a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java +++ b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java @@ -204,9 +204,14 @@ public class JobsPaymentListener implements Listener { return; ItemStack itemInHand = Jobs.getNms().getItemInMainHand(player); - if (itemInHand == null || (itemInHand.getType() != Material.BUCKET && itemInHand.getType() != Material.BOWL)) + if (itemInHand == null) return; + if ((cow.getType() == EntityType.COW && itemInHand.getType() != Material.BUCKET) + || (cow.getType() == EntityType.MUSHROOM_COW && itemInHand.getType() != Material.BOWL)) { + return; + } + // check if in creative if (!payIfCreative(player)) return;