Puts everywhere brackets
This commit is contained in:
@@ -67,7 +67,9 @@ public class CompassService implements ThreadFactory
|
||||
public void cleanUp()
|
||||
{
|
||||
for( CompassReader cr : this.worldSet.values() )
|
||||
{
|
||||
cr.close();
|
||||
}
|
||||
}
|
||||
|
||||
public void updateArea( World w, int chunkX, int chunkZ )
|
||||
@@ -206,7 +208,9 @@ public class CompassService implements ThreadFactory
|
||||
cr.setHasBeacon( this.chunkX, this.chunkZ, this.doubleChunkY, this.value );
|
||||
|
||||
if( CompassService.this.jobSize() < 2 )
|
||||
{
|
||||
CompassService.this.cleanUp();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -241,7 +245,9 @@ public class CompassService implements ThreadFactory
|
||||
this.callback.calculatedDirection( true, true, -999, 0 );
|
||||
|
||||
if( CompassService.this.jobSize() < 2 )
|
||||
{
|
||||
CompassService.this.cleanUp();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -313,7 +319,9 @@ public class CompassService implements ThreadFactory
|
||||
this.callback.calculatedDirection( true, false, CompassService.this.rad( cx, cz, chosen_x, chosen_z ), CompassService.this.dist( cx, cz, chosen_x, chosen_z ) );
|
||||
|
||||
if( CompassService.this.jobSize() < 2 )
|
||||
{
|
||||
CompassService.this.cleanUp();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -323,7 +331,9 @@ public class CompassService implements ThreadFactory
|
||||
this.callback.calculatedDirection( false, true, -999, 999 );
|
||||
|
||||
if( CompassService.this.jobSize() < 2 )
|
||||
{
|
||||
CompassService.this.cleanUp();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,9 @@ public class CompassRegion
|
||||
{
|
||||
File fName = this.getFileName();
|
||||
if( this.hasFile )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if( create || this.fileExists( fName ) )
|
||||
{
|
||||
@@ -89,7 +91,9 @@ public class CompassRegion
|
||||
if( !folderFile.exists() || !folderFile.isDirectory() )
|
||||
{
|
||||
if( !folderFile.mkdir() )
|
||||
{
|
||||
AELog.info( "Failed to create AE2/compass/" );
|
||||
}
|
||||
}
|
||||
|
||||
return new File( folder, this.world + '_' + this.low_x + '_' + this.low_z + ".dat" );
|
||||
@@ -127,7 +131,9 @@ public class CompassRegion
|
||||
|
||||
int val = this.read( cx, cz );
|
||||
if( val != 0 )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -164,12 +170,18 @@ public class CompassRegion
|
||||
int originalVal = val;
|
||||
|
||||
if( hasBeacon )
|
||||
{
|
||||
val |= 1 << cdy;
|
||||
}
|
||||
else
|
||||
{
|
||||
val &= ~( 1 << cdy );
|
||||
}
|
||||
|
||||
if( originalVal != val )
|
||||
{
|
||||
this.write( cx, cz, val );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -66,16 +66,24 @@ public abstract class BaseVersion implements Version
|
||||
public final boolean equals( Object o )
|
||||
{
|
||||
if( this == o )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if( !( o instanceof Version ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Version that = (Version) o;
|
||||
|
||||
if( this.revision != that.revision() )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if( this.build != that.build() )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return this.channel == that.channel();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user