Skip to content

Commit

Permalink
reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss committed Nov 21, 2023
1 parent 9f0c879 commit c1c3ec3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/gregtech/client/renderer/pipe/PipeRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public abstract class PipeRenderer implements ICCBlockRenderer, IItemRenderer {
private EnumBlockRenderType blockRenderType;
protected static final ThreadLocal<BlockRenderer.BlockFace> blockFaces = ThreadLocal.withInitial(BlockRenderer.BlockFace::new);
private static final Cuboid6 FRAME_RENDER_CUBOID = new Cuboid6(0.001, 0.001, 0.001, 0.999, 0.999, 0.999);
private static final EnumMap<EnumFacing, EnumMap<FluidPipeRenderer.Border, EnumFacing>> FACE_BORDER_MAP = new EnumMap<>(EnumFacing.class);
private static final EnumMap<EnumFacing, EnumMap<Border, EnumFacing>> FACE_BORDER_MAP = new EnumMap<>(EnumFacing.class);
private static final Int2ObjectMap<IVertexOperation[]> RESTRICTOR_MAP = new Int2ObjectOpenHashMap<>();

@SuppressWarnings("unused")
Expand Down Expand Up @@ -305,7 +305,7 @@ protected void renderPipeSide(CCRenderState renderState, PipeRenderContext rende
int connections = renderContext.getConnections();
if (blockedConnections != 0) {
int borderMask = 0;
for (FluidPipeRenderer.Border border : FluidPipeRenderer.Border.VALUES) {
for (Border border : Border.VALUES) {
EnumFacing borderSide = getSideAtBorder(side, border);
if (TileEntityPipeBase.isFaceBlocked(blockedConnections, borderSide)
&& TileEntityPipeBase.isConnected(connections, borderSide)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private void setPipesActive() {

@Nullable
private ILaserContainer getInnerContainer() {
if (net == null || pipe == null || pipe.isInvalid() || facing == null ) {
if (net == null || pipe == null || pipe.isInvalid() || facing == null) {
return null;
}

Expand Down

0 comments on commit c1c3ec3

Please sign in to comment.