Skip to content

Commit fea5291

Browse files
committed
refactor SkinView to use the new setProgressValue
1 parent 4b95dc2 commit fea5291

File tree

1 file changed

+1
-2
lines changed
  • src/main/java/doggytalents/client/screen/DogNewInfoScreen/element/view/StyleView/view/SkinView

1 file changed

+1
-2
lines changed

src/main/java/doggytalents/client/screen/DogNewInfoScreen/element/view/StyleView/view/SkinView/SkinView.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ private void moveBarToDog() {
138138
if (this.textureList.isEmpty())
139139
return;
140140
double progress = (double)this.activeSkinId/ (double) (textureList.size()-1);
141-
double barOffset = progress * this.scrollBar.getMaxOffsetValue();
142-
this.scrollBar.setBarOffset(barOffset);
141+
this.scrollBar.setProgressValue((float) progress);
143142
}
144143

145144
@Override

0 commit comments

Comments
 (0)