3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-09 13:00:05 +01:00
Dieser Commit ist enthalten in:
Jesse Boyd 2019-05-05 22:19:13 +10:00
Ursprung 7c174beaee
Commit d603f45063
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F
5 geänderte Dateien mit 2 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -168,7 +168,6 @@ public class BukkitPlayer extends AbstractPlayerActor {
Extent extent = loc.getExtent(); Extent extent = loc.getExtent();
if (extent instanceof World) { if (extent instanceof World) {
org.bukkit.World world = Bukkit.getWorld(((World) extent).getName()); org.bukkit.World world = Bukkit.getWorld(((World) extent).getName());
// System.out.println("Teleport to world " + world);
player.teleport(new Location(world, pos.getX(), pos.getY(), player.teleport(new Location(world, pos.getX(), pos.getY(),
pos.getZ(), yaw, pitch)); pos.getZ(), yaw, pitch));
} }

Datei anzeigen

@ -46,7 +46,6 @@ public abstract class ChunkHolder implements IChunk, Supplier<IGetBlocks> {
if (region != null) { if (region != null) {
switch (region.getChunkBounds(X, Z, min, max)) { switch (region.getChunkBounds(X, Z, min, max)) {
case NONE: case NONE:
System.out.println("NONE");
return; return;
case FULL: case FULL:
if (min.getY() == 0 && max.getY() == 255) { if (min.getY() == 0 && max.getY() == 255) {
@ -58,9 +57,8 @@ public abstract class ChunkHolder implements IChunk, Supplier<IGetBlocks> {
default: { default: {
int minLayer = min.getY() >> 4; int minLayer = min.getY() >> 4;
int maxLayer = max.getY() >> 4; int maxLayer = max.getY() >> 4;
System.out.println("Layers " + minLayer + " | " + maxLayer);
block = block.init(X, Z, get); block = block.init(X, Z, get);
for (int layer = minLayer; layer < maxLayer; layer++) { for (int layer = minLayer; layer <= maxLayer; layer++) {
if (!get.hasSection(layer) || !filter.appliesLayer(this, layer)) continue; if (!get.hasSection(layer) || !filter.appliesLayer(this, layer)) continue;
block.filter(get, set, layer, filter, region, min, max); block.filter(get, set, layer, filter, region, min, max);
} }

Datei anzeigen

@ -14,7 +14,6 @@ public final class BitArray4096 {
maxEntryValue = (1 << bitsPerEntry) - 1; maxEntryValue = (1 << bitsPerEntry) - 1;
this.longLen = (this.bitsPerEntry * 4096) >> 6; this.longLen = (this.bitsPerEntry * 4096) >> 6;
if (buffer.length < longLen) { if (buffer.length < longLen) {
System.out.println("Invalid buffer " + buffer.length + " | " + longLen);
this.data = new long[longLen]; this.data = new long[longLen];
} else { } else {
this.data = buffer; this.data = buffer;

Datei anzeigen

@ -2490,7 +2490,6 @@ public class EditSession extends AbstractDelegateExtent implements HasFaweQueue,
* @throws MaxChangedBlocksException thrown if too many blocks are changed * @throws MaxChangedBlocksException thrown if too many blocks are changed
*/ */
public int makeSphere(final BlockVector3 pos, final Pattern block, double radiusX, double radiusY, double radiusZ, final boolean filled) { public int makeSphere(final BlockVector3 pos, final Pattern block, double radiusX, double radiusY, double radiusZ, final boolean filled) {
System.out.println("Make sphere");
radiusX += 0.5; radiusX += 0.5;
radiusY += 0.5; radiusY += 0.5;
radiusZ += 0.5; radiusZ += 0.5;

Datei anzeigen

@ -635,7 +635,7 @@ public class CuboidRegion extends AbstractRegion implements FlatRegion {
int maxChunkX = maxX >> 4; int maxChunkX = maxX >> 4;
if (maxChunkX >= X) { if (maxChunkX >= X) {
int minChunkZ = minZ >> 4; int minChunkZ = minZ >> 4;
if (minChunkZ <= X) { if (minChunkZ <= Z) {
int maxChunkZ = maxZ >> 4; int maxChunkZ = maxZ >> 4;
if (maxChunkZ >= Z) { if (maxChunkZ >= Z) {
int cx1 = X << 4; int cx1 = X << 4;