Skip to content

Commit

Permalink
24w03a split out experience level
Browse files Browse the repository at this point in the history
  • Loading branch information
yurisuika committed Feb 9, 2024
1 parent d214d18 commit 833faf6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
org.gradle.jvmargs = -Xmx3G
loom.platform = fabric

minecraft_version = 23w51b
yarn_mappings = 23w51b+build.4
loader_version = 0.15.3
minecraft_version = 24w06a
yarn_mappings = 24w06a+build.6
loader_version = 0.15.6

mod_id = raised
mod_author = yurisuika
mod_version = 3.1.1
maven_group = dev.yurisuika.raised
archives_base_name = raised

fabric_version = 0.93.1+1.20.5
fabric_version = 0.95.6+1.20.5
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,23 @@ private void startHeadTranslate(DrawContext context, float tickDelta, CallbackIn

// MAIN HUD
@Inject(method = "renderMainHud", at = @At(value = "HEAD"))
private void startSpectatorMenuTranslate(DrawContext context, float tickDelta, CallbackInfo ci) {
private void startMainHudTranslate(DrawContext context, float tickDelta, CallbackInfo ci) {
start(context, 0, getHud(), 0);
}

@Inject(method = "renderMainHud", at = @At(value = "TAIL"))
private void endSpectatorMenuTranslate(DrawContext context, float tickDelta, CallbackInfo ci) {
private void endMainHudTranslate(DrawContext context, float tickDelta, CallbackInfo ci) {
end(context, 0, getHud(), 0);
}

// EXPERIENCE LEVEL
@Inject(method = "renderExperienceLevel", at = @At(value = "HEAD"))
private void startExperienceLevelTranslate(DrawContext context, float tickDelta, CallbackInfo ci) {
start(context, 0, getHud(), 0);
}

@Inject(method = "renderExperienceLevel", at = @At(value = "TAIL"))
private void endExperienceLevelTranslate(DrawContext context, float tickDelta, CallbackInfo ci) {
end(context, 0, getHud(), 0);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"accessWidener" : "raised.accesswidener",

"depends": {
"fabricloader": ">=0.15.3",
"fabricloader": ">=0.15.6",
"minecraft": ">1.20.4",
"java": ">=17"
}
Expand Down

0 comments on commit 833faf6

Please sign in to comment.