mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-11 15:57:31 +00:00
Fix: corrected textures and removed flickering
This commit is contained in:
1 parent
5b169882bc
commit
d81198fa0a
1 file changed
+8
-4
@@ -76,6 +76,10 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
|
||||
super.renderFaceZPos(block, x, y, z, null);
|
||||
clearOverrideBlockTexture();
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
this.submap = null;
|
||||
}
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@@ -131,10 +135,10 @@ public class SubmapManagerVoidstone extends SubmapManagerBase {
|
||||
public RenderBlocks createRenderContext(RenderBlocks rendererOld, Block block, IBlockAccess world) {
|
||||
initStatics();
|
||||
RenderBlocksVoidstone rb = renderBlocksThreadLocal.get();
|
||||
|
||||
rb = new RenderBlocksVoidstone();
|
||||
renderBlocksThreadLocal.set(rb);
|
||||
|
||||
if (rb == null) {
|
||||
rb = new RenderBlocksVoidstone();
|
||||
renderBlocksThreadLocal.set(rb);
|
||||
} else rb.reset();
|
||||
RenderBlocks ctx = overlay.createRenderContext(rendererOld, block, world);
|
||||
rb.setRenderBoundsFromBlock(block);
|
||||
if (ctx instanceof RenderBlocksCTM) {
|
||||
|
||||
Reference in new issue
Block a user