Fixed Battery item render, fixed ListUtil.split()

This commit is contained in:
Aidan Brady 2013-08-05 03:35:18 -04:00
parent a00acf06b5
commit 686642e6f5
2 changed files with 2 additions and 2 deletions

View file

@ -108,7 +108,7 @@ public class ListUtil
public static <V> ArrayList<List<V>> split(List<V> list, int divide)
{
int remain = list.size()%divide;
int size = (list.size()/divide)-remain;
int size = (list.size()-remain)/divide;
ArrayList<List<V>> toReturn = new ArrayList<List<V>>();

View file

@ -52,7 +52,7 @@ public class BlockRenderingHandler implements ISimpleBlockRenderingHandler
else if (block instanceof BlockBattery)
{
GL11.glPushMatrix();
GL11.glTranslated(0.5, 1.5, 0.5);
GL11.glTranslated(0.5, 1.42, 0.5);
GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
FMLClientHandler.instance().getClient().renderEngine.func_110577_a(RenderBattery.TEXTURE);
RenderBattery.MODEL.render(0.0625f);