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

This commit is contained in:
Wizjany 2013-01-20 02:10:05 -05:00
parent 19d7beaf39
commit 5b0af07c3c

View File

@ -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);