Update kirin

This commit is contained in:
Sollace 2022-09-04 15:44:57 +02:00
parent 95e487ad1b
commit 184af1d53e
2 changed files with 4 additions and 4 deletions

View file

@ -17,4 +17,4 @@ org.gradle.daemon=false
# Dependencies
modmenu_version=4.0.6
minelp_version=4.6.1
kirin_version=1.11.0
kirin_version=1.11.1

View file

@ -96,7 +96,7 @@ public class DynamicContent implements Content {
return (bounds.width - 10) - elements.stream()
.filter(PageElement::isFloating)
.map(PageElement::bounds)
.filter(b -> b.contains(b.left + b.width / 2, yPosition))
.filter(b -> b.containsY(yPosition))
.mapToInt(b -> b.width)
.sum();
}
@ -105,7 +105,7 @@ public class DynamicContent implements Content {
return elements.stream()
.filter(p -> p.flow() == PageElement.Flow.LEFT)
.map(PageElement::bounds)
.filter(b -> b.contains(b.left + b.width / 2, yPosition))
.filter(b -> b.containsY(yPosition))
.mapToInt(b -> b.width)
.sum();
}
@ -150,7 +150,7 @@ public class DynamicContent implements Content {
elements.stream().filter(PageElement::isFloating).forEach(element -> {
Bounds bounds = element.bounds();
matrices.push();
matrices.translate(bounds.left, bounds.top, 0);
bounds.translate(matrices);
element.draw(matrices, mouseX, mouseY, container);
matrices.pop();
});