Fix radius mask

This commit is contained in:
Jesse Boyd 2019-11-17 20:52:58 +00:00
parent 329df8d33b
commit 0394f3516b
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -21,7 +21,7 @@ public class RadiusMask extends AbstractMask implements ResettableMask {
@Override
public boolean test(BlockVector3 to) {
if (pos == null) {
pos = to;
pos = to.toImmutable();
}
int dx = pos.getBlockX() - to.getBlockX();
int d = dx * dx;