aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/utils/RenderUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/Danker/utils/RenderUtils.java')
-rw-r--r--src/main/java/me/Danker/utils/RenderUtils.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/me/Danker/utils/RenderUtils.java b/src/main/java/me/Danker/utils/RenderUtils.java
index c3efc90..f334b7a 100644
--- a/src/main/java/me/Danker/utils/RenderUtils.java
+++ b/src/main/java/me/Danker/utils/RenderUtils.java
@@ -387,15 +387,16 @@ public class RenderUtils {
GlStateManager.popMatrix();
}
- public static void renderItem(ItemStack item, float x, float y, float z) {
-
+ public static void renderItem(ItemStack stack, int x, int y, double scale) {
GlStateManager.enableRescaleNormal();
RenderHelper.enableGUIStandardItemLighting();
GlStateManager.enableDepth();
GlStateManager.pushMatrix();
- GlStateManager.translate(x, y, z);
- Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(item, 0, 0);
+ GlStateManager.translate(x, y, 0);
+ GlStateManager.scale(scale, scale, scale);
+ //Minecraft.getMinecraft().getRenderItem().renderItemIntoGUI(stack, 0, 0);
+ Minecraft.getMinecraft().getRenderItem().renderItemAndEffectIntoGUI(stack, 0, 0);
GlStateManager.popMatrix();
GlStateManager.disableDepth();