Assignment replaceable with operator assignment
This commit is contained in:
@@ -59,8 +59,8 @@ public class CompassReader
|
||||
private CompassRegion getRegion(int cx, int cz)
|
||||
{
|
||||
long pos = cx >> 10;
|
||||
pos = pos << 32;
|
||||
pos = pos | (cz >> 10);
|
||||
pos <<= 32;
|
||||
pos |= ( cz >> 10 );
|
||||
|
||||
CompassRegion cr = this.regions.get( pos );
|
||||
if ( cr == null )
|
||||
|
||||
@@ -81,8 +81,8 @@ public class CompassRegion
|
||||
{
|
||||
if ( this.hasFile )
|
||||
{
|
||||
cx = cx & 0x3FF;
|
||||
cz = cz & 0x3FF;
|
||||
cx &= 0x3FF;
|
||||
cz &= 0x3FF;
|
||||
|
||||
int val = this.read( cx, cz );
|
||||
if ( val != 0 )
|
||||
|
||||
Reference in New Issue
Block a user