Hopefully last try at #309...

This commit is contained in:
tterrag1098 committed 2015-04-26 22:04:05 -04:00
1 parent f0cb6555a8
commit 37e77f00f8
3 files changed
+12 -6

No files matched your search

@@ -31,14 +31,13 @@ public class SubmapManagerAntiblock extends SubmapManagerBase<RenderBlocksCTM> {
};
@SideOnly(Side.CLIENT)
private RenderBlocksCTMFullbright rb;
private static RenderBlocksCTMFullbright rb;
private String color;
private TextureSubmap submap, submapSmall;
public SubmapManagerAntiblock(String color) {
this.color = color;
this.rb = new RenderBlocksCTMFullbright();
}
@Override
@@ -56,6 +55,9 @@ public class SubmapManagerAntiblock extends SubmapManagerBase<RenderBlocksCTM> {
@Override
@SideOnly(Side.CLIENT)
public RenderBlocksCTM createRenderContext(RenderBlocks rendererOld, IBlockAccess world) {
if (rb == null) {
rb = new RenderBlocksCTMFullbright();
}
rb.submap = submap;
rb.submapSmall = submapSmall;
return rb;