1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-02 14:29:07 +01:00

Fix right clicking on cow and get paid without bucket

Fixes #991
This commit is contained in:
montlikadani 2020-11-05 16:21:58 +01:00
parent 9c34ccdcec
commit 89280f05f2

View File

@ -221,9 +221,11 @@ public class JobsPaymentListener implements Listener {
return;
ItemStack itemInHand = Jobs.getNms().getItemInMainHand(player);
if (itemInHand.getType() != Material.BUCKET && itemInHand.getType() != Material.BOWL) {
return;
}
if (itemInHand.getType() != Material.BUCKET
&& (cow.getType() == EntityType.MUSHROOM_COW && itemInHand.getType() != Material.BOWL)) {
if (itemInHand.getType() == Material.BOWL && cow.getType() != EntityType.MUSHROOM_COW) {
return;
}