SPIGOT-6443: Fix PlayerBucketFishEvent#getWaterBucket returning the wrong item

By: DiamondDagger590 <diamonddagger590@gmail.com>
This commit is contained in:
Bukkit/Spigot 2021-05-01 08:34:11 +10:00
parent 0158dbb6fe
commit 2b0986b240

View File

@ -39,13 +39,13 @@ public class PlayerBucketFishEvent extends PlayerEvent implements Cancellable {
/**
* Gets the bucket used.
*
* This refers to the bucket clicked with, ie {@link Material#WATER}.
* This refers to the bucket clicked with, ie {@link Material#WATER_BUCKET}.
*
* @return The used bucket
*/
@NotNull
public ItemStack getWaterBucket() {
return fishBucket;
return waterBucket;
}
/**