From 7143607620ce64a0d5c23372a2015eb41e922e1d Mon Sep 17 00:00:00 2001 From: LexManos Date: Sun, 19 May 2013 13:22:12 -0700 Subject: [PATCH] Fixed render count for stacks of blocks 40+ and distrabution of items based on scale. Closes #579 --- client/net/minecraftforge/client/ForgeHooksClient.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/net/minecraftforge/client/ForgeHooksClient.java b/client/net/minecraftforge/client/ForgeHooksClient.java index 412e1acdb8..b47ae3b4ff 100644 --- a/client/net/minecraftforge/client/ForgeHooksClient.java +++ b/client/net/minecraftforge/client/ForgeHooksClient.java @@ -101,7 +101,7 @@ public class ForgeHooksClient GL11.glScalef(scale, scale, scale); int size = item.stackSize; - int count = (size > 20 ? 4 : (size > 5 ? 3 : (size > 1 ? 2 : 1))); + int count = (size > 40 ? 5 : (size > 20 ? 4 : (size > 5 ? 3 : (size > 1 ? 2 : 1)))); for(int j = 0; j < count; j++) { @@ -109,9 +109,9 @@ public class ForgeHooksClient if (j > 0) { GL11.glTranslatef( - ((random.nextFloat() * 2.0F - 1.0F) * 0.2F) / 0.5F, - ((random.nextFloat() * 2.0F - 1.0F) * 0.2F) / 0.5F, - ((random.nextFloat() * 2.0F - 1.0F) * 0.2F) / 0.5F); + ((random.nextFloat() * 2.0F - 1.0F) * 0.2F) / scale, + ((random.nextFloat() * 2.0F - 1.0F) * 0.2F) / scale, + ((random.nextFloat() * 2.0F - 1.0F) * 0.2F) / scale); } customRenderer.renderItem(ENTITY, item, renderBlocks, entity); GL11.glPopMatrix();