Sync with L2JServer Jan 28th 2015.
This commit is contained in:
@ -23,9 +23,9 @@ import java.nio.ByteBuffer;
|
||||
import com.l2jserver.commons.geodriver.IBlock;
|
||||
|
||||
/**
|
||||
* @author FBIagent
|
||||
* @author HorridoJoho
|
||||
*/
|
||||
public class MultilayerBlock extends AbstractBlock
|
||||
public class MultilayerBlock implements IBlock
|
||||
{
|
||||
private final byte[] _data;
|
||||
|
||||
@ -124,14 +124,6 @@ public class MultilayerBlock extends AbstractBlock
|
||||
return (_getNearestNSWE(geoX, geoY, worldZ) & nswe) == nswe;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkNearestNswe(int geoX, int geoY, int worldZ, int nswe, int zDeltaLimit)
|
||||
{
|
||||
short layer = _getNearestLayer(geoX, geoY, worldZ);
|
||||
int height = _extractLayerHeight(layer);
|
||||
return Math.abs(worldZ - height) > zDeltaLimit ? true : (_extractLayerNswe(layer) & nswe) == nswe;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getNearestZ(int geoX, int geoY, int worldZ)
|
||||
{
|
||||
|
Reference in New Issue
Block a user