Skip to content

Commit

Permalink
1.3.1 Beta Fabric 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
eth0net authored Aug 4, 2022
2 parents 9d0a531 + b10fee7 commit dca3e2a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions changelogs/1.3.1-beta+fabric-1.19.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Now with fixed scroll!

**Changed**:
- Scroll offset is now capped to max scroll offset

**Full Changelog**: https://github.com/eth0net/enchant-menu/compare/v1.3.0+fabric-1.19...v1.3.1-beta+fabric-1.19
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ completeConfigVersionId=zaC01d1T
# Mod Properties
mavenGroup=com.github.eth0net
modId=enchant-menu
modVersion=1.3.0+fabric-1.19
modVersionName=1.3.0 Fabric 1.19
modVersionType=release
modVersion=1.3.1-beta+fabric-1.19
modVersionName=1.3.1 Beta Fabric 1.19
modVersionType=beta
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class EnchantMenuScreen(handler: EnchantMenuScreenHandler, playerInventory: Play
private val canScroll get() = handler.enchantments.size > maxRows
private val maxScrollOffset get() = if (canScroll) handler.enchantments.size - maxRows else 0
private var scrollOffset = 0
get() = if (field > maxScrollOffset) maxScrollOffset else field
set(value) {
field = if (value <= 0) {
0
Expand Down

0 comments on commit dca3e2a

Please sign in to comment.