mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-17 03:05:10 +00:00
Hopefully last try at #309...
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user