diff options
author | snowleo <schneeleo@gmail.com> | 2011-10-09 23:31:13 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-10-09 23:31:13 +0200 |
commit | 67c0f57756b20e6366bafa2ccfe2b0f1e0243e11 (patch) | |
tree | e52bdfe9b9d1b24b98ce8ab5e7de229e5c4594eb | |
parent | 164070b4879b67d49acd765e1ece7fe5c74dc575 (diff) | |
download | Essentials-67c0f57756b20e6366bafa2ccfe2b0f1e0243e11.tar Essentials-67c0f57756b20e6366bafa2ccfe2b0f1e0243e11.tar.gz Essentials-67c0f57756b20e6366bafa2ccfe2b0f1e0243e11.tar.lz Essentials-67c0f57756b20e6366bafa2ccfe2b0f1e0243e11.tar.xz Essentials-67c0f57756b20e6366bafa2ccfe2b0f1e0243e11.zip |
Cleanup
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandessentials.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java b/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java index fda7061d5..328a4a8b5 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java @@ -56,7 +56,6 @@ public class Commandessentials extends EssentialsCommand } final String tuneStr = "1D#,1E,2F#,,2A#,1E,1D#,1E,2F#,2B,2D#,2E,2D#,2A#,2B,,2F#,,1D#,1E,2F#,2B,2C#,2A#,2B,2C#,2E,2D#,2E,2C#,,2F#,,2G#,,1D,1D#,,1C#,1D,1C#,1B,,1B,,1C#,,1D,,1D,1C#,1B,1C#,1D#,2F#,2G#,1D#,2F#,1C#,1D#,1B,1C#,1B,1D#,,2F#,,2G#,1D#,2F#,1C#,1D#,1B,1D,1D#,1D,1C#,1B,1C#,1D,,1B,1C#,1D#,2F#,1C#,1D,1C#,1B,1C#,,1B,,1C#,,2F#,,2G#,,1D,1D#,,1C#,1D,1C#,1B,,1B,,1C#,,1D,,1D,1C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F#,1B,,1F#,1G#,1B,,1F#,1G#,1B,1B,1C#,1D#,1B,1F#,1G#,1F#,1B,,1B,1A#,1B,1F#,1G#,1B,1E,1D#,1E,2F#,1B,,1B,,"; final String[] tune = tuneStr.split(","); - for (Player player : server.getOnlinePlayers()) { final Location loc = player.getLocation(); @@ -91,7 +90,7 @@ public class Commandessentials extends EssentialsCommand for (Player player : server.getOnlinePlayers()) { Block block = noteBlocks.get(player); - if (block == null) + if (block == null || block.getType() != Material.NOTE_BLOCK) { continue; } @@ -110,7 +109,10 @@ public class Commandessentials extends EssentialsCommand ess.getScheduler().cancelTask(taskid); for (Block block : noteBlocks.values()) { - block.setType(Material.AIR); + if (block.getType() == Material.NOTE_BLOCK) + { + block.setType(Material.AIR); + } } noteBlocks.clear(); } |