mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-25 08:28:34 +01:00
Merge pull request #1438 from Caffeinew/main
Config option: disable energy overlay
This commit is contained in:
commit
5e616297ee
2 changed files with 5 additions and 1 deletions
|
@ -89,6 +89,7 @@ public class CommonConfig {
|
|||
}
|
||||
|
||||
public static class Other {
|
||||
public static ModConfigSpec.BooleanValue HIDE_ENERGY_OVERLAY;
|
||||
public static ModConfigSpec.BooleanValue SOLID_XP_ALWAYS_ORBS;
|
||||
public static ModConfigSpec.BooleanValue DO_UPDATE_CHECK;
|
||||
public static ModConfigSpec.BooleanValue UPDATE_CHECK_VERSION_SPECIFIC;
|
||||
|
@ -116,6 +117,9 @@ public class CommonConfig {
|
|||
|
||||
BUILDER.comment("Everything else").push("other");
|
||||
|
||||
HIDE_ENERGY_OVERLAY = BUILDER.comment("If true, when looking at blocks the Energy Overlay will be hidden.")
|
||||
.define("hideEnergyOverlay", false);
|
||||
|
||||
SOLID_XP_ALWAYS_ORBS = BUILDER.comment("If true, Solidified Experience will always spawn orbs, even for regular players.")
|
||||
.define("solidXPOrbs", false);
|
||||
|
||||
|
|
|
@ -264,7 +264,7 @@ public class ClientEvents {
|
|||
}
|
||||
}
|
||||
|
||||
if (tileHit instanceof IEnergyDisplay display) {
|
||||
if (tileHit instanceof IEnergyDisplay display && !CommonConfig.Other.HIDE_ENERGY_OVERLAY.get()) {
|
||||
if (!display.needsHoldShift() || player.isShiftKeyDown()) {
|
||||
if (energyDisplay == null) {
|
||||
energyDisplay = new EnergyDisplay(0, 0, null);
|
||||
|
|
Loading…
Reference in a new issue