mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-31 21:37:39 +01:00
SPIGOT-6443: Fix PlayerBucketFishEvent#getWaterBucket returning the wrong item
By: DiamondDagger590 <diamonddagger590@gmail.com>
This commit is contained in:
parent
0158dbb6fe
commit
2b0986b240
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user