mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-04 03:56:41 +00:00
Move vectors to static creators, for caching
This commit is contained in:
@ -130,7 +130,7 @@ public class EllipsoidRegion extends AbstractRegion {
|
||||
public void contract(BlockVector3... changes) throws RegionOperationException {
|
||||
center = center.subtract(calculateDiff(changes));
|
||||
Vector3 newRadius = radius.subtract(calculateChanges(changes));
|
||||
radius = new Vector3(1.5, 1.5, 1.5).getMaximum(newRadius);
|
||||
radius = Vector3.at(1.5, 1.5, 1.5).getMaximum(newRadius);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -185,11 +185,11 @@ public class EllipsoidRegion extends AbstractRegion {
|
||||
|
||||
for (int x = min.getBlockX(); x <= max.getBlockX(); ++x) {
|
||||
for (int z = min.getBlockZ(); z <= max.getBlockZ(); ++z) {
|
||||
if (!contains(new BlockVector3(x, centerY, z))) {
|
||||
if (!contains(BlockVector3.at(x, centerY, z))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
chunks.add(new BlockVector2(
|
||||
chunks.add(BlockVector2.at(
|
||||
x >> ChunkStore.CHUNK_SHIFTS,
|
||||
z >> ChunkStore.CHUNK_SHIFTS
|
||||
));
|
||||
|
Reference in New Issue
Block a user