From 0b60d4efe2fed324131e083f6d4168256d943588 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 5 Mar 2012 18:40:18 +1100 Subject: [PATCH] I dont think free noteblocks are a good idea --- .../com/earth2me/essentials/commands/Commandessentials.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java b/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java index 56432a91f..ce2f03af9 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandessentials.java @@ -117,7 +117,7 @@ public class Commandessentials extends EssentialsCommand if (loc.getBlock().getTypeId() == 0) { noteBlocks.put(player, loc.getBlock()); - loc.getBlock().setType(Material.NOTE_BLOCK); + player.sendBlockChange(loc, Material.NOTE_BLOCK, (byte)0); } } taskid = ess.scheduleSyncRepeatingTask(new Runnable() @@ -149,7 +149,6 @@ public class Commandessentials extends EssentialsCommand } } }, 20, 2); - return; } private void stopTune()