Skip to content

Commit da1de39

Browse files
committed
fixes
1 parent 8c60fcb commit da1de39

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

src/main/java/com/cleanroommc/modularui/drawable/GuiDraw.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,6 @@ public static void drawAmountText(int amount, String format, int x, int y, int w
337337
textRenderer.setAlignment(alignment, width, height);
338338
textRenderer.setPos(x, y);
339339
textRenderer.setHardWrapOnBorder(false);
340-
GlStateManager.disableLighting();
341-
GlStateManager.disableDepth();
342340
textRenderer.draw(amountText);
343341
textRenderer.setHardWrapOnBorder(true);
344342
}

src/main/java/com/cleanroommc/modularui/utils/fakeworld/Camera.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import com.cleanroommc.modularui.utils.MathUtils;
44
import com.cleanroommc.modularui.utils.Vector3f;
55

6-
import net.minecraft.util.math.MathHelper;
76
import net.minecraft.util.math.Vec3i;
87

98
import org.jetbrains.annotations.Nullable;
@@ -86,7 +85,7 @@ public Camera setLookAtAndAngle(float lookAtX, float lookAtY, float lookAtZ, flo
8685
this.pitch = pitch;
8786
this.dist = dist;
8887
Vector3f v = this.temp;
89-
v.set(MathHelper.cos(yaw), 0, MathHelper.sin(yaw));
88+
v.set(MathUtils.cos(yaw), 0, MathUtils.sin(yaw));
9089
v.y = MathUtils.tan(pitch) * v.length();
9190
v.normalise().scale(dist);
9291
this.pos.set(v.translate(lookAtX, lookAtY, lookAtZ));

src/main/java/com/cleanroommc/modularui/utils/fakeworld/SchemaRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected void onRendered() {
9191
@Override
9292
protected void onSuccessfulRayTrace(@NotNull RayTraceResult result) {
9393
if (this.highlight != null) {
94-
this.highlight.renderHighlight(result.getBlockPos(), result.sideHit, getCamera().getPos());
94+
this.highlight.renderHighlight(result, getCamera().getPos());
9595
}
9696
}
9797

src/main/java/com/cleanroommc/modularui/widgets/slot/ItemSlot.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ private void drawSlot(ModularSlot slotIn) {
234234
float itemScale = NEAAnimationHandler.injectHoverScale(guiContainer, slotIn);
235235
// render the item itself
236236
renderItem.renderItemAndEffectIntoGUI(guiScreen.mc.player, itemstack, 1, 1);
237+
Platform.endDrawItem();
237238
// TODO render item borders from item borders mod here
238239

239240
if (amount < 0) {

0 commit comments

Comments
 (0)