diff --git a/guilib b/guilib index a91753027..4393d355a 160000 --- a/guilib +++ b/guilib @@ -1 +1 @@ -Subproject commit a91753027a420e48d6292b959672773e940817de +Subproject commit 4393d355adfb5910282f106167f26b09f1defb88 diff --git a/src/main/java/com/troblecodings/signals/guis/PreviewSideBar.java b/src/main/java/com/troblecodings/signals/guis/PreviewSideBar.java index 21791d8c4..457e6f8cd 100644 --- a/src/main/java/com/troblecodings/signals/guis/PreviewSideBar.java +++ b/src/main/java/com/troblecodings/signals/guis/PreviewSideBar.java @@ -3,6 +3,7 @@ import java.util.HashMap; import java.util.Map; +import com.troblecodings.core.QuaternionWrapper; import com.troblecodings.guilib.ecs.entitys.UIBlockRender; import com.troblecodings.guilib.ecs.entitys.UIEntity; import com.troblecodings.guilib.ecs.entitys.input.UIDrag; @@ -26,8 +27,8 @@ public PreviewSideBar(final float height) { blockRenderEntity.setInheritHeight(true); blockRenderEntity.setWidth(60); - blockRenderEntity - .add(new UIDrag((x, y) -> blockRender.updateRotation((float) x, (float) y, 0))); + blockRenderEntity.add(new UIDrag((x, y) -> blockRender + .updateRotation(QuaternionWrapper.fromXYZ(0, (float) x * MODIFIER, 0)))); blockRenderEntity.add(new UIScissor()); blockRenderEntity.add(new UIColor(GuiSignalBox.BACKGROUND_COLOR));