mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 12:19:55 +00:00
fixed connected textures between conduit facade and fuzed quartz
This commit is contained in:
1 parent
e762f2bf64
commit
41fd6dffec
2 files changed
+9
-2
No files matched your search
@@ -271,7 +271,7 @@ public class ConduitBundleRenderer extends TileEntitySpecialRenderer implements
|
||||
return BlockConduitBundle.rendererId;
|
||||
}
|
||||
|
||||
private class FacadeAccessWrapper extends IBlockAccessWrapper {
|
||||
public static class FacadeAccessWrapper extends IBlockAccessWrapper {
|
||||
|
||||
public FacadeAccessWrapper(IBlockAccess ba) {
|
||||
super(ba);
|
||||
|
||||
@@ -14,6 +14,7 @@ import crazypants.enderio.EnderIO;
|
||||
import crazypants.enderio.config.Config;
|
||||
import crazypants.enderio.machine.painter.PainterUtil;
|
||||
import crazypants.enderio.machine.painter.TileEntityPaintedBlock;
|
||||
import crazypants.enderio.conduit.render.ConduitBundleRenderer.FacadeAccessWrapper;
|
||||
import crazypants.render.ConnectedTextureRenderer;
|
||||
import crazypants.render.ConnectedTextureRenderer.DefaultTextureCallback;
|
||||
import crazypants.render.CustomCubeRenderer;
|
||||
@@ -66,7 +67,13 @@ public class FusedQuartzRenderer implements ISimpleBlockRenderingHandler {
|
||||
if(te instanceof TileEntityPaintedBlock) {
|
||||
tecb = (TileEntityPaintedBlock) te;
|
||||
}
|
||||
renderFrame(blockAccess, x, y, z, tecb, false, meta);
|
||||
IBlockAccess origBa = renderer.blockAccess;
|
||||
renderer.blockAccess = new FacadeAccessWrapper(origBa);
|
||||
try {
|
||||
renderFrame(renderer.blockAccess, x, y, z, tecb, false, meta);
|
||||
} finally {
|
||||
renderer.blockAccess = origBa;
|
||||
}
|
||||
// }
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user