Skip to content

Commit

Permalink
Fix changing the map y clip sliders resetting the scene y clip sliders.
Browse files Browse the repository at this point in the history
  • Loading branch information
leMaik committed Sep 24, 2024
1 parent 8789d95 commit 275c711
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions chunky/src/java/se/llbit/chunky/ui/render/tabs/GeneralTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -514,14 +514,16 @@ private void updateCanvasCrop() {
private void updateYClipSlidersRanges(World world) {
if (world != null && world.getVersionId() >= World.VERSION_21W06A) {
yMin.setRange(-64, 320);
yMin.set(-64);
yMax.setRange(-64, 320);
yMax.set(320);
} else {
yMin.setRange(0, 256);
yMin.set(0);
if (yMin.get() < 0) {
yMin.set(0);
}
yMax.setRange(0, 256);
yMax.set(256);
if (yMax.get() > 256) {
yMax.set(256);
}
}
}
}

0 comments on commit 275c711

Please sign in to comment.