Reduce scope of variables
This commit is contained in:
@@ -282,9 +282,6 @@ public class PartFormationPlane extends PartUpgradeable implements ICellContaine
|
||||
public void renderStatic( BlockPos opos, IPartRenderHelper rh, ModelGenerator renderer )
|
||||
{
|
||||
int minX = 1;
|
||||
int minY = 1;
|
||||
int maxX = 15;
|
||||
int maxY = 15;
|
||||
|
||||
EnumFacing e = rh.getWorldX();
|
||||
EnumFacing u = rh.getWorldY();
|
||||
@@ -297,16 +294,19 @@ public class PartFormationPlane extends PartUpgradeable implements ICellContaine
|
||||
minX = 0;
|
||||
}
|
||||
|
||||
int maxX = 15;
|
||||
if( this.isTransitionPlane( te.getWorld().getTileEntity( pos.offset( e ) ), this.side ) )
|
||||
{
|
||||
maxX = 16;
|
||||
}
|
||||
|
||||
int minY = 1;
|
||||
if( this.isTransitionPlane( te.getWorld().getTileEntity( pos.offset( u.getOpposite() ) ), this.side ) )
|
||||
{
|
||||
minY = 0;
|
||||
}
|
||||
|
||||
int maxY = 15;
|
||||
if( this.isTransitionPlane( te.getWorld().getTileEntity( pos.offset( u ) ), this.side ) )
|
||||
{
|
||||
maxY = 16;
|
||||
|
||||
Reference in New Issue
Block a user