Forgot to load the chunk, whoops. Also bumping the version

This commit is contained in:
Jesse Boyd 2016-04-22 02:31:20 +10:00
parent 61ae58f3f2
commit 63ad22a021
7 changed files with 17 additions and 17 deletions

View File

@ -10,7 +10,7 @@ buildscript {
}
group = 'com.boydti.fawe'
version = '3.3.19'
version = '3.3.20'
description = """FastAsyncWorldEdit"""
subprojects {

View File

@ -1,6 +1,6 @@
name: FastAsyncWorldEdit
main: com.boydti.fawe.bukkit.FaweBukkit
version: 3.3.19
version: 3.3.20
description: Fast Async WorldEdit plugin
authors: [Empire92]
loadbefore: [WorldEdit]

View File

@ -202,18 +202,17 @@ public class FaweBukkit extends JavaPlugin implements IFawe, Listener {
}
}
return new BukkitQueue_1_8(world);
} catch (Throwable e) {
if (hasNMS) {
debug("====== NO NMS BLOCK PLACER FOUND ======");
debug("FAWE couldn't find a fast block placer");
debug("Bukkit version: " + Bukkit.getVersion());
debug("Supported NMS versions: 1.8, 1.9");
debug("Fallback placer: " + BukkitQueue_All.class);
debug("=======================================");
hasNMS = false;
}
return new BukkitQueue_All(world);
} catch (Throwable ignore) {}
if (hasNMS) {
debug("====== NO NMS BLOCK PLACER FOUND ======");
debug("FAWE couldn't find a fast block placer");
debug("Bukkit version: " + Bukkit.getVersion());
debug("Supported NMS versions: 1.8, 1.9");
debug("Fallback placer: " + BukkitQueue_All.class);
debug("=======================================");
hasNMS = false;
}
return new BukkitQueue_All(world);
}
/**

View File

@ -85,6 +85,7 @@ public class BukkitQueue_All extends BukkitQueue_0 {
startSet();
final BukkitChunk_1_8 fs = ((BukkitChunk_1_8) fc);
final Chunk chunk = fs.getChunk();
chunk.load(true);
final World world = chunk.getWorld();
char[][] sections = fs.getIdArrays();
boolean done = false;
@ -283,7 +284,7 @@ public class BukkitQueue_All extends BukkitQueue_0 {
lastSection = getCachedSection(lastChunk, cy);
}
if (lastChunk == null) {
if (lastSection == null) {
return 0;
}
return getCombinedId4Data(lastSection, x, y, z);

View File

@ -1,6 +1,6 @@
name: FastAsyncWorldEdit
main: com.boydti.fawe.bukkit.FaweBukkit
version: 3.3.19
version: 3.3.20
description: Fast Async WorldEdit plugin
authors: [Empire92]
loadbefore: [WorldEdit]

View File

@ -18,7 +18,7 @@ import org.spongepowered.api.plugin.PluginContainer;
import org.spongepowered.api.profile.GameProfileManager;
import org.spongepowered.api.world.World;
@Plugin(id = "com.boydti.fawe", name = "FastAsyncWorldEdit", description = "Lagless WorldEdit, Area restrictions, Memory mangement, Block logging", url = "https://github.com/boy0001/FastAsyncWorldedit", version = "3.3.19")
@Plugin(id = "com.boydti.fawe", name = "FastAsyncWorldEdit", description = "Lagless WorldEdit, Area restrictions, Memory mangement, Block logging", url = "https://github.com/boy0001/FastAsyncWorldedit", version = "3.3.20")
public class SpongeMain {
public PluginContainer plugin;

View File

@ -8,7 +8,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<artifactId>FastAsyncWorldEdit</artifactId>
<version>3.3.19</version>
<version>3.3.20</version>
<name>FastAsyncWorldEdit</name>
<packaging>jar</packaging>
<build>