Don't spam if we can't find a Nms Block

Dieser Commit ist enthalten in:
Wizjany 2013-01-20 02:10:05 -05:00
Ursprung 19d7beaf39
Commit 5b0af07c3c

Datei anzeigen

@ -124,7 +124,7 @@ public class BukkitWorld extends LocalWorld {
// check if we have a class we can use for nms access
// only run once per server startup
if (nmsBlockType != null) return;
if (nmsBlockType != null || skipNmsAccess || skipNmsSafeSet || skipNmsValidBlockCheck) return;
Plugin plugin = Bukkit.getPluginManager().getPlugin("WorldEdit");
if (!(plugin instanceof WorldEditPlugin)) return; // hopefully never happens
WorldEditPlugin wePlugin = ((WorldEditPlugin) plugin);