Skip to content

Commit

Permalink
chore: work through update todos
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Mar 24, 2023
1 parent e45eb03 commit e4c23fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,16 @@ public void drawSlot(PoseStack poseStack, int mx, int my) {
//render item overlay
poseStack.pushPose();

//TODO: Blit offset problems?
// this.minecraft.getItemRenderer()
// .blitOffset = 0.1f;
//we ended up not using any translate and it was fine

poseStack.translate(0, 0, 0); //which Z?
poseStack.scale(.5f, .5f, .5f);

this.minecraft.getItemRenderer().renderGuiItemDecorations(poseStack, this.fontRenderer, this.stack, this.x * 2 + 16, this.y * 2 + 16, amount);
poseStack.popPose();
}

//TODO: Blit offset problems?
//this.minecraft.getItemRenderer().blitOffset = -100F;
poseStack.pushPose();
poseStack.translate(0, 0, -100);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,6 @@ public static void onRegisterGuiOverlays(RegisterGuiOverlaysEvent event){
event.registerAboveAll("third_eye", (gui, poseStack, partialTick, screenWidth, screenHeight) -> {
if( Occultism.THIRD_EYE_EFFECT_RENDERER.gogglesActiveLastTick || Occultism.THIRD_EYE_EFFECT_RENDERER.thirdEyeActiveLastTick){
gui.setupOverlayRenderState(true, false, ThirdEyeEffectRenderer.THIRD_EYE_TEXTURE);
//TODO: Overlay works?
//RenderSystem.enableTexture();
Occultism.THIRD_EYE_EFFECT_RENDERER.renderOverlay(poseStack);
}
});
Expand Down

0 comments on commit e4c23fe

Please sign in to comment.