Skip to content

Commit

Permalink
fix textures loses transparency when drawing specific items
Browse files Browse the repository at this point in the history
  • Loading branch information
RedthMC committed Aug 23, 2023
1 parent 17e1a46 commit ff4ff3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mod_name=ArmorOCHUD
# Sets the id of your mod that mod loaders use to recognize it.
mod_id=armor_oc_hud
# Sets the version of your mod. Make sure to update this when you make changes according to semver.
mod_version=1.0.3
mod_version=1.0.4
# Sets the name of the jar file that you put in your 'mods' folder.
mod_archives_name=ArmorOCHUD

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/me/redth/armorochud/hud/ItemHUD.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected void draw(UMatrixStack matrices, float x, float y, float scale, boolea
if (item == null) return;

GlStateManager.pushMatrix();
GlStateManager.translate(x, y, 100F);
GlStateManager.translate(x, y, 100);
GlStateManager.scale(scale, scale, 1.0);

drawItem(item);
Expand Down Expand Up @@ -61,5 +61,6 @@ protected void drawItem(ItemStack item) {
RenderHelper.disableStandardItemLighting();
GlStateManager.disableBlend();
GlStateManager.disableRescaleNormal();
GlStateManager.enableAlpha();
}
}

0 comments on commit ff4ff3e

Please sign in to comment.