Merge pull request #186 from thatsIch/Return
Removes unnecessary returns
This commit is contained in:
@@ -313,6 +313,7 @@ public class ClientHelper extends ServerHelper
|
||||
case LightningArc:
|
||||
spawnLightningArc( worldObj, posX, posY, posZ, (Vec3) o );
|
||||
return;
|
||||
default:
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -587,9 +587,7 @@ public abstract class AEBaseContainer extends Container
|
||||
if ( syncData.containsKey( idx ) )
|
||||
{
|
||||
syncData.get( idx ).update( (long) value );
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
final public void updateFullProgressBar(int idx, long value)
|
||||
|
||||
@@ -39,9 +39,7 @@ public class SyncData
|
||||
try
|
||||
{
|
||||
Object val = field.get( source );
|
||||
if ( val == clientVersion )
|
||||
return;
|
||||
else if ( val != null && clientVersion == null )
|
||||
if ( val != null && clientVersion == null )
|
||||
send( c, val );
|
||||
else if ( !val.equals( clientVersion ) )
|
||||
send( c, val );
|
||||
|
||||
@@ -58,55 +58,46 @@ public class PacketValueConfig extends AppEngPacket
|
||||
ItemStack is = player.getHeldItem();
|
||||
IMouseWheelItem si = (IMouseWheelItem) is.getItem();
|
||||
si.onWheel( is, Value.equals( "WheelUp" ) );
|
||||
return;
|
||||
}
|
||||
else if ( Name.equals( "Terminal.Cpu" ) && c instanceof ContainerCraftingStatus )
|
||||
{
|
||||
ContainerCraftingStatus qk = (ContainerCraftingStatus) c;
|
||||
qk.cycleCpu( Value.equals( "Next" ) );
|
||||
return;
|
||||
}
|
||||
else if ( Name.equals( "Terminal.Cpu" ) && c instanceof ContainerCraftConfirm )
|
||||
{
|
||||
ContainerCraftConfirm qk = (ContainerCraftConfirm) c;
|
||||
qk.cycleCpu( Value.equals( "Next" ) );
|
||||
return;
|
||||
}
|
||||
else if ( Name.equals( "Terminal.Start" ) && c instanceof ContainerCraftConfirm )
|
||||
{
|
||||
ContainerCraftConfirm qk = (ContainerCraftConfirm) c;
|
||||
qk.startJob();
|
||||
return;
|
||||
}
|
||||
else if ( Name.equals( "TileCrafting.Cancel" ) && c instanceof ContainerCraftingCPU )
|
||||
{
|
||||
ContainerCraftingCPU qk = (ContainerCraftingCPU) c;
|
||||
qk.cancelCrafting();
|
||||
return;
|
||||
}
|
||||
else if ( Name.equals( "QuartzKnife.Name" ) && c instanceof ContainerQuartzKnife )
|
||||
{
|
||||
ContainerQuartzKnife qk = (ContainerQuartzKnife) c;
|
||||
qk.setName( Value );
|
||||
return;
|
||||
}
|
||||
else if ( Name.equals( "TileSecurity.ToggleOption" ) && c instanceof ContainerSecurity )
|
||||
{
|
||||
ContainerSecurity sc = (ContainerSecurity) c;
|
||||
sc.toggleSetting( Value, player );
|
||||
return;
|
||||
}
|
||||
else if ( Name.equals( "PriorityHost.Priority" ) && c instanceof ContainerPriority )
|
||||
{
|
||||
ContainerPriority pc = (ContainerPriority) c;
|
||||
pc.setPriority( Integer.parseInt( Value ), player );
|
||||
return;
|
||||
}
|
||||
else if ( Name.equals( "LevelEmitter.Value" ) && c instanceof ContainerLevelEmitter )
|
||||
{
|
||||
ContainerLevelEmitter lvc = (ContainerLevelEmitter) c;
|
||||
lvc.setLevel( Long.parseLong( Value ), player );
|
||||
return;
|
||||
}
|
||||
else if ( Name.startsWith( "PatternTerminal." ) && c instanceof ContainerPatternTerm )
|
||||
{
|
||||
@@ -213,7 +204,6 @@ public class PacketValueConfig extends AppEngPacket
|
||||
GuiScreen gs = Minecraft.getMinecraft().currentScreen;
|
||||
if ( gs instanceof GuiCraftingCPU )
|
||||
((GuiCraftingCPU) gs).clearItems();
|
||||
return;
|
||||
}
|
||||
else if ( c instanceof IConfigurableObject )
|
||||
{
|
||||
|
||||
@@ -101,7 +101,6 @@ final public class EntityGrowingCrystal extends EntityItem
|
||||
progress_1000 = 0;
|
||||
CommonHelper.proxy.spawnEffect( EffectType.Vibrant, worldObj, posX, posY + 0.2, posZ, null );
|
||||
}
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -311,8 +311,6 @@ public class FacadePart implements IFacadePart, IBoxProvider
|
||||
instance.renderForPass( 0 );
|
||||
instance.setTexture( null );
|
||||
Tessellator.instance.setColorOpaque_F( 1, 1, 1 );
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -321,8 +319,6 @@ public class FacadePart implements IFacadePart, IBoxProvider
|
||||
AELog.error( t );
|
||||
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -485,8 +481,6 @@ public class FacadePart implements IFacadePart, IBoxProvider
|
||||
instance.renderInventoryBox( renderer );
|
||||
|
||||
instance.setTexture( null );
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -494,8 +488,6 @@ public class FacadePart implements IFacadePart, IBoxProvider
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user