mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-04 23:37:49 +01:00
parent
9c34ccdcec
commit
89280f05f2
@ -221,9 +221,11 @@ public class JobsPaymentListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
ItemStack itemInHand = Jobs.getNms().getItemInMainHand(player);
|
ItemStack itemInHand = Jobs.getNms().getItemInMainHand(player);
|
||||||
|
if (itemInHand.getType() != Material.BUCKET && itemInHand.getType() != Material.BOWL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (itemInHand.getType() != Material.BUCKET
|
if (itemInHand.getType() == Material.BOWL && cow.getType() != EntityType.MUSHROOM_COW) {
|
||||||
&& (cow.getType() == EntityType.MUSHROOM_COW && itemInHand.getType() != Material.BOWL)) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user