Skip to content

Commit c41ac12

Browse files
committed
ability activation and utils
1 parent e5630bf commit c41ac12

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/main/kotlin/dev/sterner/client/screen/ItemAbilityScreen.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ItemAbilityScreen(stack: ItemStack) : Screen(Component.literal("Ability Se
3333
initialized = false
3434

3535
w = 180
36-
h = 37
36+
h = 41
3737
abilities = VoidBoundComponentRegistry.VOID_BOUND_REVELATION_COMPONENT.get(minecraft!!.player!!).unlockedItemAbilities
3838
}
3939

@@ -108,13 +108,13 @@ class ItemAbilityScreen(stack: ItemStack) : Screen(Component.literal("Ability Se
108108
minecraft!!.font,
109109
ability.name.lowercase().replaceFirstChar { it.uppercase() }, // Access ability directly
110110
abilityX + 24,
111-
y + 32,
111+
y + 34,
112112
0xDDCCFF
113113
)
114114
}
115115

116116
val texture = VoidBound.id("textures/gui/" + ability.name.lowercase() + ".png")
117-
guiGraphics.blit(texture, abilityX + 16, y + 16, 0, 0f, 0f, 16, 16, 16, 16)
117+
guiGraphics.blit(texture, abilityX + 16, y + 18, 0, 0f, 0f, 16, 16, 16, 16)
118118

119119
matrixStack.popPose()
120120

Loading

0 commit comments

Comments
 (0)