mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-11-21 12:42:45 +00:00
Reduce scope of variables
This commit is contained in:
1 parent
f4ff28d2a6
commit
0387d30d1c
78 files changed
+174
-218
No files matched your search
@@ -396,7 +396,6 @@ public final class BusRenderHelper implements IPartRenderHelper
|
||||
{
|
||||
ForgeDirection forward = this.az;
|
||||
ForgeDirection up = this.ay;
|
||||
ForgeDirection west = ForgeDirection.UNKNOWN;
|
||||
|
||||
if( forward == null || up == null )
|
||||
{
|
||||
@@ -407,6 +406,7 @@ public final class BusRenderHelper implements IPartRenderHelper
|
||||
int west_y = forward.offsetZ * up.offsetX - forward.offsetX * up.offsetZ;
|
||||
int west_z = forward.offsetX * up.offsetY - forward.offsetY * up.offsetX;
|
||||
|
||||
ForgeDirection west = ForgeDirection.UNKNOWN;
|
||||
for( ForgeDirection dx : ForgeDirection.VALID_DIRECTIONS )
|
||||
{
|
||||
if( dx.offsetX == west_x && dx.offsetY == west_y && dx.offsetZ == west_z )
|
||||
|
||||
Reference in new issue
Block a user