From 20876c7a8a15aad04cf99c9f4214e0f8b6a462b2 Mon Sep 17 00:00:00 2001 From: DoKM Date: Thu, 12 Aug 2021 16:14:34 +0200 Subject: Add prismapump overlay toggle --- .../notenoughupdates/miscfeatures/CustomItemEffects.java | 2 +- .../options/seperateSections/ItemOverlays.java | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java index 2f9d326e..3ca05dea 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java @@ -795,7 +795,7 @@ public class CustomItemEffects { GlStateManager.enableTexture2D(); GlStateManager.disableBlend(); } - } else if((heldInternal.equals("WATER_BUCKET") || heldInternal.equals("MAGICAL_WATER_BUCKET")) && + } else if((heldInternal.equals("WATER_BUCKET") || heldInternal.equals("MAGICAL_WATER_BUCKET") && NotEnoughUpdates.INSTANCE.config.itemOverlays.enablePrismapumpOverlay) && event.target.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) { BlockPos hover = event.target.getBlockPos().offset(event.target.sideHit, 1); 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 5b7dbbb0..af236bf8 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 @@ -279,7 +279,7 @@ public class ItemOverlays { @Expose @ConfigOption( name = "Enable Crystal Overlay", - desc = "Show a block overlay for the effective radius of minion crystals (farming, mining, etc)" + desc = "Show a block overlay for the effective radius of minion crystals (farming, mining, etc)." ) @ConfigEditorBoolean @ConfigAccordionId(id = 5) @@ -288,9 +288,19 @@ public class ItemOverlays { @Expose @ConfigOption( name = "Always Show Crystal Overlay", - desc = "Show the crystal overlay, even when a minion crystal is not being held" + desc = "Show the crystal overlay, even when a minion crystal is not being held." ) @ConfigEditorBoolean @ConfigAccordionId(id = 5) public boolean alwaysShowCrystal = false; + + + @Expose + @ConfigOption( + name = "Enable Prismapump Overlay", + desc = "Show a block overlay for the effected blocks of prismapump's ability." + ) + @ConfigEditorBoolean + public boolean enablePrismapumpOverlay = true; + } -- cgit