2021-06-11 12:02:28 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
|
|
|
Date: Tue, 1 Mar 2016 13:14:11 -0600
|
|
|
|
Subject: [PATCH] Configurable fishing time ranges
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2021-11-24 17:58:26 +00:00
|
|
|
index ec3fb557fa31b153de20c4990066182a774dd489..5896b4e4646d722db5622a424fa26f42d3f8d9ff 100644
|
2021-06-11 12:02:28 +00:00
|
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2021-11-24 17:58:26 +00:00
|
|
|
@@ -114,4 +114,12 @@ public class PaperWorldConfig {
|
2021-06-11 12:02:28 +00:00
|
|
|
|
|
|
|
log("Baby zombies will move at the speed of " + babyZombieMovementModifier);
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public int fishingMinTicks;
|
|
|
|
+ public int fishingMaxTicks;
|
|
|
|
+ private void fishingTickRange() {
|
|
|
|
+ fishingMinTicks = getInt("fishing-time-range.MinimumTicks", 100);
|
|
|
|
+ fishingMaxTicks = getInt("fishing-time-range.MaximumTicks", 600);
|
|
|
|
+ log("Fishing time ranges are between " + fishingMinTicks +" and " + fishingMaxTicks + " ticks");
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/projectile/FishingHook.java b/src/main/java/net/minecraft/world/entity/projectile/FishingHook.java
|
2022-01-03 06:24:33 +00:00
|
|
|
index 73c5a0e6f1db6bf438fe516e213f40f0645ed954..dc248a0a91795fb67cc0e15cb0012364e739fbaa 100644
|
2021-06-11 12:02:28 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/projectile/FishingHook.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/projectile/FishingHook.java
|
2021-11-23 11:27:39 +00:00
|
|
|
@@ -82,6 +82,10 @@ public class FishingHook extends Projectile {
|
2021-06-11 22:37:16 +00:00
|
|
|
this.noCulling = true;
|
2022-01-03 06:24:33 +00:00
|
|
|
this.luck = Math.max(0, luckOfTheSeaLevel);
|
|
|
|
this.lureSpeed = Math.max(0, lureLevel);
|
2021-06-11 12:02:28 +00:00
|
|
|
+ // Paper start
|
|
|
|
+ minWaitTime = world.paperConfig.fishingMinTicks;
|
|
|
|
+ maxWaitTime = world.paperConfig.fishingMaxTicks;
|
2021-10-02 17:21:49 +00:00
|
|
|
+ // Paper end
|
2021-06-11 12:02:28 +00:00
|
|
|
}
|
|
|
|
|
2021-06-11 22:37:16 +00:00
|
|
|
public FishingHook(EntityType<? extends FishingHook> type, Level world) {
|