From 30515a65f540787c57419478f9ffb35b65c6f7de Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Sat, 26 May 2012 12:00:34 +0200 Subject: [PATCH] Fixed 2 warnings. --- src/main/java/com/sk89q/bukkit/util/DynamicPluginCommand.java | 3 ++- src/main/java/com/sk89q/worldedit/spout/SpoutWorld.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/bukkit/util/DynamicPluginCommand.java b/src/main/java/com/sk89q/bukkit/util/DynamicPluginCommand.java index 79cb76b6c..098e8d608 100644 --- a/src/main/java/com/sk89q/bukkit/util/DynamicPluginCommand.java +++ b/src/main/java/com/sk89q/bukkit/util/DynamicPluginCommand.java @@ -76,6 +76,7 @@ public class DynamicPluginCommand extends org.bukkit.command.Command implements return owningPlugin; } + @SuppressWarnings("unchecked") @Override public boolean testPermissionSilent(CommandSender sender) { if (permissions == null || permissions.length == 0) { @@ -85,7 +86,7 @@ public class DynamicPluginCommand extends org.bukkit.command.Command implements if (registeredWith instanceof CommandsManager) { try { for (String permission : permissions) { - if (((CommandsManager) registeredWith).hasPermission(sender, permission)) { + if (((CommandsManager) registeredWith).hasPermission(sender, permission)) { return true; } } diff --git a/src/main/java/com/sk89q/worldedit/spout/SpoutWorld.java b/src/main/java/com/sk89q/worldedit/spout/SpoutWorld.java index 9b81d9bab..94bbab57f 100644 --- a/src/main/java/com/sk89q/worldedit/spout/SpoutWorld.java +++ b/src/main/java/com/sk89q/worldedit/spout/SpoutWorld.java @@ -212,8 +212,8 @@ public class SpoutWorld extends LocalWorld { public void setBiome(Vector2D pt, BiomeType biome) { if (biome instanceof SpoutBiomeType && world.getGenerator() instanceof BiomeGenerator) { - BiomeGenerator gen = (BiomeGenerator) world.getGenerator(); throw new UnsupportedOperationException("Biome changing is not yet supported in Spout"); + //BiomeGenerator gen = (BiomeGenerator) world.getGenerator(); //gen.setBiome(new Vector3(pt.getBlockX(), 0, pt.getBlockZ()), ((SpoutBiomeType) biome).getSpoutBiome()); } }