Skip to content

Commit

Permalink
Fixed bucketFillPlayerEvent listener for cow milking
Browse files Browse the repository at this point in the history
  • Loading branch information
Eredrim committed Apr 29, 2019
1 parent 5de78a6 commit 514c85a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,10 @@ public void onPlayerBucketFill(PlayerBucketFillEvent event) {
Player player = event.getPlayer();
if (plugin.isResAdminOn(player))
return;

// Fix for milk buckets
if(event.getItemStack().getType() == Material.MILK_BUCKET)
return;

ClaimedResidence res = plugin.getResidenceManager().getByLoc(event.getBlockClicked().getLocation());
if (res != null) {
Expand Down

0 comments on commit 514c85a

Please sign in to comment.