Removed 1.13.2 support.

This commit is contained in:
MattBDev
2020-01-27 18:54:31 -05:00
parent 240a817e6e
commit cb6359f010
23 changed files with 50 additions and 1780 deletions

View File

@ -126,7 +126,6 @@ public class ErodeBrush implements Brush {
private void erosionIteration(int brushSize, int brushSizeSquared, int erodeFaces,
Clipboard current, Clipboard target) {
int[] frequency = null;
for (int x = -brushSize, relx = 0; x <= brushSize; x++, relx++) {
int x2 = x * x;
for (int z = -brushSize, relz = 0; z <= brushSize; z++, relz++) {
@ -138,7 +137,7 @@ public class ErodeBrush implements Brush {
continue;
}
BaseBlock state = current.getFullBlock(relx, rely, relz);
if (!state.getBlockType().getMaterial().isMovementBlocker()) {
if (!state.getMaterial().isMovementBlocker()) {
continue;
}
int total = 0;
@ -151,7 +150,7 @@ public class ErodeBrush implements Brush {
}
for (BlockVector3 offs : FACES_TO_CHECK) {
BaseBlock next = current.getFullBlock(relx + offs.getBlockX(), rely + offs.getBlockY(), relz + offs.getBlockZ());
if (next.getBlockType().getMaterial().isMovementBlocker()) {
if (next.getMaterial().isMovementBlocker()) {
continue;
}
total++;

View File

@ -5,6 +5,7 @@ public class FlatScalableHeightMap extends ScalableHeightMap {
super();
}
@Override
public double getHeight(int x, int z) {
int dx = Math.abs(x);
int dz = Math.abs(z);

View File

@ -13,6 +13,7 @@ import com.sk89q.worldedit.util.Location;
import java.util.concurrent.ThreadLocalRandom;
public interface HeightMap {
double getHeight(int x, int z);
void setSize(int size);

View File

@ -6,7 +6,7 @@ import com.sk89q.worldedit.math.transform.AffineTransform;
public class RotatableHeightMap extends AbstractDelegateHeightMap {
private AffineTransform transform;
private MutableVector3 mutable;
private final MutableVector3 mutable;
public RotatableHeightMap(HeightMap parent) {
super(parent);
@ -25,4 +25,4 @@ public class RotatableHeightMap extends AbstractDelegateHeightMap {
BlockVector3 pos = transform.apply(mutable.setComponents(x, 0, z)).toBlockPoint();
return super.getHeight(pos.getBlockX(), pos.getBlockZ());
}
}
}