aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-09-07 20:11:15 +0200
committerDoKM <mcazzyman@gmail.com>2021-09-07 20:11:15 +0200
commit42e887bfedd711a817ad8c4e1d03088d5929062c (patch)
treefb75da2559779d625f88b55930d17e73c92bde2f
parent32b6f0d803190b0584ab12a4e1e5043882132b8b (diff)
parent5fd6051b3f577b8ea802bd043fda6be47cf1453d (diff)
downloadNotEnoughUpdates-42e887bfedd711a817ad8c4e1d03088d5929062c.tar.gz
NotEnoughUpdates-42e887bfedd711a817ad8c4e1d03088d5929062c.tar.bz2
NotEnoughUpdates-42e887bfedd711a817ad8c4e1d03088d5929062c.zip
Merge remote-tracking branch 'origin/master'
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java4
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ItemOverlays.java11
2 files changed, 14 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java
index 053910bc..e18c28be 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/ItemCooldowns.java
@@ -65,6 +65,10 @@ public class ItemCooldowns {
}
public static long getTreecapCooldownWithPet(){
+ if (!NotEnoughUpdates.INSTANCE.config.itemOverlays.enableCooldownInItemDurability){
+ return 0;
+ }
+
PetInfoOverlay.Pet pet = PetInfoOverlay.getCurrentPet();
if (NotEnoughUpdates.INSTANCE.config.itemOverlays.enableMonkeyCheck && pet != null) {
if (pet.petLevel != null &&
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ItemOverlays.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ItemOverlays.java
index 4e4524e2..9d0814d5 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ItemOverlays.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/ItemOverlays.java
@@ -27,6 +27,15 @@ public class ItemOverlays {
@Expose
@ConfigOption(
+ name = "Show in Item durability",
+ desc = "Show the cooldown of the Treecapitator in the item durability"
+ )
+ @ConfigEditorBoolean
+ @ConfigAccordionId(id = 0)
+ public boolean enableCooldownInItemDurability = true;
+
+ @Expose
+ @ConfigOption(
name = "Overlay Colour",
desc = "Change the colour of the overlay"
)
@@ -37,7 +46,7 @@ public class ItemOverlays {
@Expose
@ConfigOption(
name = "Enable Monkey Pet Check",
- desc = "Will check use the API to check what pet you're using\nto determine the cooldown based off of if you have monkey pet."
+ desc = "Will check using the API to check what pet you're using\nto determine the cooldown based off of if you have a monkey pet."
)
@ConfigEditorBoolean
@ConfigAccordionId(id = 0)