Commits

Cynthia Yantis authored and md_5 committed a030a41b0dc
SPIGOT-6443: Fix PlayerBucketFishEvent#getWaterBucket returning the wrong item
No tags

src/main/java/org/bukkit/event/player/PlayerBucketFishEvent.java

Modified
32 32 * @return The fish involved with this event
33 33 */
34 34 @NotNull
35 35 public Fish getEntity() {
36 36 return fish;
37 37 }
38 38
39 39 /**
40 40 * Gets the bucket used.
41 41 *
42 - * This refers to the bucket clicked with, ie {@link Material#WATER}.
42 + * This refers to the bucket clicked with, ie {@link Material#WATER_BUCKET}.
43 43 *
44 44 * @return The used bucket
45 45 */
46 46 @NotNull
47 47 public ItemStack getWaterBucket() {
48 - return fishBucket;
48 + return waterBucket;
49 49 }
50 50
51 51 /**
52 52 * Gets the bucket that the fish will be put into.
53 53 *
54 54 * This refers to the bucket with the fish, ie
55 55 * {@link Material#PUFFERFISH_BUCKET}.
56 56 *
57 57 * @return The bucket that the fish will be put into
58 58 */

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut