Reduce scope of variables
This commit is contained in:
@@ -544,7 +544,6 @@ public enum GuiBridge implements IGuiHandler
|
||||
{
|
||||
if( te instanceof IActionHost && this.requiredPermission != null )
|
||||
{
|
||||
boolean requirePower = false;
|
||||
|
||||
IGridNode gn = ( (IActionHost) te ).getActionableNode();
|
||||
if( gn != null )
|
||||
@@ -552,6 +551,7 @@ public enum GuiBridge implements IGuiHandler
|
||||
IGrid g = gn.getGrid();
|
||||
if( g != null )
|
||||
{
|
||||
boolean requirePower = false;
|
||||
if( requirePower )
|
||||
{
|
||||
IEnergyGrid eg = g.getCache( IEnergyGrid.class );
|
||||
|
||||
@@ -45,11 +45,10 @@ public class AppEngClientPacketHandler extends AppEngPacketHandlerBase implement
|
||||
final EntityPlayer player )
|
||||
{
|
||||
ByteBuf stream = packet.payload();
|
||||
int packetType = -1;
|
||||
|
||||
try
|
||||
{
|
||||
packetType = stream.readInt();
|
||||
int packetType = stream.readInt();
|
||||
AppEngPacket pack = PacketTypes.getPacket( packetType ).parsePacket( stream );
|
||||
|
||||
PacketCallState callState =
|
||||
|
||||
@@ -91,10 +91,9 @@ public class PacketCraftRequest extends AppEngPacket
|
||||
return;
|
||||
}
|
||||
|
||||
Future<ICraftingJob> futureJob = null;
|
||||
|
||||
cca.whatToMake.setStackSize( this.amount );
|
||||
|
||||
Future<ICraftingJob> futureJob = null;
|
||||
try
|
||||
{
|
||||
ICraftingGrid cg = g.getCache( ICraftingGrid.class );
|
||||
|
||||
Reference in New Issue
Block a user