Skip to content

Commit

Permalink
Small update
Browse files Browse the repository at this point in the history
+Updated to use latest fabric loader and api versison
*Fixed minor display bug with Health Regen
*Made default levelling formula slightly steeper
  • Loading branch information
CleverNucleus committed Aug 12, 2022
1 parent 37f4a76 commit 9e30361
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ dependencies {
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"

modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"

modImplementation "maven.modrinth:data-attributes:${project.dataattributes_version}"
modImplementation "maven.modrinth:data-attributes:${project.data_attributes_version}"

modImplementation "maven.modrinth:offline-player-cache:${project.opc_version}"
include "maven.modrinth:offline-player-cache:${project.opc_version}"
Expand Down
18 changes: 9 additions & 9 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
org.gradle.jvmargs=-Xmx1G

minecraft_version=1.19
yarn_mappings=1.19+build.1
loader_version=0.14.6
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.1
loader_version=0.14.9

mod_version = 3.3.4
mod_version = 3.3.5
maven_group = com.github.clevernucleus
archives_base_name = playerex

fabric_version=0.57.0+1.19
dataattributes_version=1.2.2
opc_version=0.6.1
fabric_api_version=0.59.0+1.19.2
data_attributes_version=1.2.4
opc_version=0.6.2
cardinal_components_version=5.0.1
placeholder_api=2.0.0-beta.7+1.19
cloth_config_version=7.0.73
modmenu_version=4.0.4
cloth_config_version=8.0.75
modmenu_version=4.0.6
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ protected void init() {
return tooltip;
}, 93, 37));
COMPONENTS.add(RenderComponent.of(ExAPI.HEALTH_REGENERATION, value -> {
return Text.translatable("playerex.gui.page.attributes.text.health_regeneration", value).formatted(Formatting.DARK_GRAY);
return Text.translatable("playerex.gui.page.attributes.text.health_regeneration", ClientUtil.FORMATTING_3.format(value)).formatted(Formatting.DARK_GRAY);
}, value -> {
List<Text> tooltip = new ArrayList<Text>();
tooltip.add((Text.translatable("playerex.gui.page.attributes.tooltip.health_regeneration[0]")).formatted(Formatting.GRAY));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static enum Tooltip { DEFAULT, VANILLA, PLAYEREX; }

@ConfigEntry.Category(value = "server")
@ConfigEntry.Gui.Tooltip(count = 2)
protected String levelFormula = "stairs(x,0.15,2,25,10,22)";
protected String levelFormula = "stairs(x,0.2,2.4,17,10,25)";

@ConfigEntry.Category(value = "client")
@ConfigEntry.BoundedDiscrete(min = 0, max = 150)
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"playerex.mixins.json"
],
"depends": {
"fabricloader": ">=0.14.6",
"fabric": ">=0.57.0",
"minecraft": "1.19",
"dataattributes": ">=1.2.0",
"cloth-config2": ">=7.0.0",
"fabricloader": ">=0.14.9",
"fabric-api": ">=0.59.0",
"minecraft": "1.19.2",
"dataattributes": ">=1.2.4",
"cloth-config2": ">=8.0.0",
"java": ">=17"
}
}
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"versions":"1.17.1","releases":"3.0.x"},{"versions":"1.18.1","releases":"3.1.x"},{"versions":"1.19 | 1.18.2","releases":"3.3.x | 3.2.x"}]
[{"versions":"1.17.1","releases":"3.0.x"},{"versions":"1.18.1","releases":"3.1.x"},{"versions":"1.19.x | 1.18.2","releases":"3.3.x | 3.2.x"}]

0 comments on commit 9e30361

Please sign in to comment.