mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-27 15:33:06 +00:00
Angelica compat (#153)
* Angelica Compat - Thread Saftey * Depends on EnderCore updates for instanced CubeRenderer * Switches relevant renderers to ThreadLocals, and adds a getRenderer() to Conduits * Makes ConduitBundleRenderer threadsafe * Misc reduction in allocations
This commit is contained in:
1 parent
29554c6a40
commit
94fb952cb0
59 files changed
+456
-370
No files matched your search
@@ -19,7 +19,6 @@ import com.enderio.core.common.vecmath.Vertex;
|
||||
|
||||
public class OverlayRenderer implements IRenderFace {
|
||||
|
||||
private static final CustomCubeRenderer ccr = CustomCubeRenderer.instance;
|
||||
private AbstractMachineEntity te;
|
||||
|
||||
public void setTile(AbstractMachineEntity te) {
|
||||
@@ -30,6 +29,7 @@ public class OverlayRenderer implements IRenderFace {
|
||||
@Override
|
||||
public void renderFace(CustomRenderBlocks rb, ForgeDirection face, Block par1Block, double x, double y, double z,
|
||||
IIcon texture, List<Vertex> refVertices, boolean translateToXyz) {
|
||||
CustomCubeRenderer ccr = CustomCubeRenderer.get();
|
||||
|
||||
if (te != null && par1Block instanceof AbstractMachineBlock) {
|
||||
BlockCoord bc = new BlockCoord(x, y, z);
|
||||
|
||||
Reference in new issue
Block a user