Skip to content

Commit 8db2e7d

Browse files
committed
Address vector deprecations
1 parent 07c6148 commit 8db2e7d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

worldedit-core/src/main/java/com/fastasyncworldedit/core/anvil/MCAChunk.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ public <V extends Future<V>> V call(final IChunkSet set, final Runnable finalize
994994
tiles.entrySet().removeIf(e -> {
995995
BlockVector3 pos = e.getKey();
996996
return set
997-
.getBlock(pos.getBlockX(), pos.getBlockY(), pos.getBlockZ())
997+
.getBlock(pos.x(), pos.y(), pos.z())
998998
.getOrdinalChar() != BlockTypesCache.ReservedIDs.__RESERVED__;
999999
});
10001000
for (int layer = set.getMinSectionPosition(); layer <= set.getMaxSectionPosition(); layer++) {

worldedit-core/src/main/java/com/fastasyncworldedit/core/regions/WorldRegionsRegion.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public WorldRegionsRegion(@Nonnull final MCAWorld world) {
6464
public Iterator<BlockVector3> iterator() {
6565
Queue<BlockVector2> queue = new ArrayDeque<>(getChunks());
6666
return new Iterator<>() {
67-
private final int by = min.getY();
68-
private final int ty = max.getY();
67+
private final int by = min.y();
68+
private final int ty = max.y();
6969
private final MutableBlockVector3 mutable = new MutableBlockVector3();
7070

7171
private BlockVector2 chunk = queue.poll();
@@ -156,7 +156,7 @@ public int getWidth() {
156156
BlockVector3 min = getMinimumPoint();
157157
BlockVector3 max = getMaximumPoint();
158158

159-
return max.getX() - min.getX() + 1;
159+
return max.x() - min.x() + 1;
160160
}
161161

162162
/**
@@ -169,7 +169,7 @@ public int getHeight() {
169169
BlockVector3 min = getMinimumPoint();
170170
BlockVector3 max = getMaximumPoint();
171171

172-
return max.getY() - min.getY() + 1;
172+
return max.y() - min.y() + 1;
173173
}
174174

175175
/**
@@ -182,7 +182,7 @@ public int getLength() {
182182
BlockVector3 min = getMinimumPoint();
183183
BlockVector3 max = getMaximumPoint();
184184

185-
return max.getZ() - min.getZ() + 1;
185+
return max.z() - min.z() + 1;
186186
}
187187

188188
@Override
@@ -233,8 +233,8 @@ public Iterator<BlockVector3> iterator() {
233233

234234
return new Iterator<>() {
235235
private final MutableBlockVector3 mutable = new MutableBlockVector3();
236-
private final int by = min.getY() >> 4;
237-
private final int ty = max.getY() >> 4;
236+
private final int by = min.y() >> 4;
237+
private final int ty = max.y() >> 4;
238238

239239
private BlockVector2 chunk = chunks.poll();
240240
private int y;
@@ -267,7 +267,7 @@ public Throwable fillInStackTrace() {
267267

268268
@Override
269269
public int size() {
270-
return getChunks().size() * ((max.getY() >> 4) - (min.getY() >> 4));
270+
return getChunks().size() * ((max.y() >> 4) - (min.y() >> 4));
271271
}
272272
};
273273
}

0 commit comments

Comments
 (0)