Assignment replaceable with operator assignment

This commit is contained in:
thatsIch
2015-03-26 10:41:45 +01:00
parent 8ef286b9d6
commit bd2ee1c5ea
15 changed files with 34 additions and 33 deletions
@@ -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 )