Allow fishing success rate to be adjustable. Adds BUKKIT-3837
This commit is contained in:
@@ -234,13 +234,7 @@ public class EntityFishingHook extends Entity {
|
||||
if (this.au > 0) {
|
||||
--this.au;
|
||||
} else {
|
||||
short short1 = 500;
|
||||
|
||||
if (this.world.F(MathHelper.floor(this.locX), MathHelper.floor(this.locY) + 1, MathHelper.floor(this.locZ))) {
|
||||
short1 = 300;
|
||||
}
|
||||
|
||||
if (this.random.nextInt(short1) == 0) {
|
||||
if (random.nextDouble() < ((org.bukkit.entity.Fish) this.getBukkitEntity()).getBiteChance()) { // CraftBukkit - moved logic to CraftFish
|
||||
this.au = this.random.nextInt(30) + 10;
|
||||
this.motY -= 0.20000000298023224D;
|
||||
this.makeSound("random.splash", 0.25F, 1.0F + (this.random.nextFloat() - this.random.nextFloat()) * 0.4F);
|
||||
|
||||
Reference in New Issue
Block a user