Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.21.6
yarn_mappings=1.21.6+build.1
loader_version=0.17.2
minecraft_version=1.21.10
yarn_mappings=1.21.10+build.3
loader_version=0.18.1
loom_version=1.13-SNAPSHOT
# Mod Properties
mod_version=0.0.1
maven_group=com.karasu256
Expand All @@ -17,9 +18,8 @@ curseforge_id=1351402

# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.128.2+1.21.6

cloth_config_version=19.0.147
modmenu_version=15.0.0-beta.3
fabric_version=0.138.3+1.21.10
cloth_config_version=20.0.148
modmenu_version=16.0.0-rc.1

description=Enhance loator bar simplly.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public class ModConfig implements ConfigData {
public static class General{
public boolean modEnabled = true;
public boolean alwaysHideLocatorBar = false;
public boolean neverHideLocatorBar = false;

}

public static class LocatorBar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ private void onConstructed(MinecraftClient client, CallbackInfo ci) {

@Inject(method = "shouldShowExperienceBar", at = @At(value = "HEAD"), cancellable = true)
private void shouldShowExperienceBar(CallbackInfoReturnable<Boolean> cir) {
cir.setReturnValue(config.general.alwaysHideLocatorBar
|| this.client.player.experienceBarDisplayStartTime + 100 > this.client.player.age);
cir.setReturnValue(!config.general.neverHideLocatorBar && (config.general.alwaysHideLocatorBar
|| this.client.player.experienceBarDisplayStartTime + 100 > this.client.player.age));
}

@Unique
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/locatorbarplus/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"text.autoconfig.locatorbarplus.option.general": "General Settings",
"text.autoconfig.locatorbarplus.option.general.modEnabled": "Mod Enabled",
"text.autoconfig.locatorbarplus.option.general.alwaysHideLocatorBar": "Always Hide Locator Bar",
"text.autoconfig.locatorbarplus.option.general.neverHideLocatorBar": "Never Hide Locator Bar",
"text.autoconfig.locatorbarplus.option.locatorBar": "Locator Bar Settings",
"text.autoconfig.locatorbarplus.option.locatorBar.experienceBarTransparency": "Experience Bar Transparency"
}