Remove debug + Sync sponge tile changes

This commit is contained in:
Jesse Boyd 2017-11-12 11:42:19 +11:00
parent 97515d0f31
commit 0bac7251c1
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
4 changed files with 37 additions and 31 deletions

View File

@ -49,7 +49,7 @@ permissions:
worldedit.clipboard.rotate: true
worldedit.help: true
worldedit.global-mask: true
worldedit.global-trasnform: true
worldedit.global-transform: true
worldedit.generation.cylinder: true
worldedit.generation.sphere: true
worldedit.generation.forest: true

View File

@ -284,7 +284,6 @@ public class DiskOptimizedClipboard extends FaweClipboard implements Closeable {
@Override
public void close() {
MainUtil.stacktrace();
try {
if (mbb != null) {
mbb.force();

View File

@ -381,6 +381,8 @@ public class SpongeChunk_1_12 extends CharFaweChunk<Chunk, SpongeQueue_1_12> {
// Set tiles
Map<Short, CompoundTag> tilesToSpawn = this.getTiles();
if (!tilesToSpawn.isEmpty()) {
synchronized (SpongeChunk_1_12.class) {
for (Map.Entry<Short, CompoundTag> entry : tilesToSpawn.entrySet()) {
CompoundTag nativeTag = entry.getValue();
short blockHash = entry.getKey();
@ -397,6 +399,8 @@ public class SpongeChunk_1_12 extends CharFaweChunk<Chunk, SpongeQueue_1_12> {
tileEntity.readFromNBT(tag); // ReadTagIntoTile
}
}
}
}
} catch (Throwable e) {
MainUtil.handleError(e);
}

View File

@ -380,7 +380,8 @@ public class SpongeChunk_1_11 extends CharFaweChunk<Chunk, SpongeQueue_1_11> {
}
// Set tiles
Map<Short, CompoundTag> tilesToSpawn = this.getTiles();
if (!tilesToSpawn.isEmpty()) {
synchronized (SpongeChunk_1_11.class) {
for (Map.Entry<Short, CompoundTag> entry : tilesToSpawn.entrySet()) {
CompoundTag nativeTag = entry.getValue();
short blockHash = entry.getKey();
@ -397,6 +398,8 @@ public class SpongeChunk_1_11 extends CharFaweChunk<Chunk, SpongeQueue_1_11> {
tileEntity.readFromNBT(tag); // ReadTagIntoTile
}
}
}
}
} catch (Throwable e) {
MainUtil.handleError(e);
}