Fixed Battery item render, fixed ListUtil.split()
This commit is contained in:
parent
a00acf06b5
commit
686642e6f5
2 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ public class ListUtil
|
||||||
public static <V> ArrayList<List<V>> split(List<V> list, int divide)
|
public static <V> ArrayList<List<V>> split(List<V> list, int divide)
|
||||||
{
|
{
|
||||||
int remain = list.size()%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>>();
|
ArrayList<List<V>> toReturn = new ArrayList<List<V>>();
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ public class BlockRenderingHandler implements ISimpleBlockRenderingHandler
|
||||||
else if (block instanceof BlockBattery)
|
else if (block instanceof BlockBattery)
|
||||||
{
|
{
|
||||||
GL11.glPushMatrix();
|
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);
|
GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
|
||||||
FMLClientHandler.instance().getClient().renderEngine.func_110577_a(RenderBattery.TEXTURE);
|
FMLClientHandler.instance().getClient().renderEngine.func_110577_a(RenderBattery.TEXTURE);
|
||||||
RenderBattery.MODEL.render(0.0625f);
|
RenderBattery.MODEL.render(0.0625f);
|
||||||
|
|
Loading…
Reference in a new issue