summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <md_5@bigpond.com>2012-03-05 18:40:18 +1100
committerKHobbits <rob@khobbits.co.uk>2012-03-05 08:37:16 +0000
commit1f39617fe29aa3a5c60fa488dc57d7bf0db98b16 (patch)
tree7134bc80e37ed706a7d5563a87386f31909e29e0
parent873c2f71babc979b39d2e8315bfa6f0f5465258e (diff)
downloadEssentials-1f39617fe29aa3a5c60fa488dc57d7bf0db98b16.tar
Essentials-1f39617fe29aa3a5c60fa488dc57d7bf0db98b16.tar.gz
Essentials-1f39617fe29aa3a5c60fa488dc57d7bf0db98b16.tar.lz
Essentials-1f39617fe29aa3a5c60fa488dc57d7bf0db98b16.tar.xz
Essentials-1f39617fe29aa3a5c60fa488dc57d7bf0db98b16.zip
I dont think free noteblocks are a good idea
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandessentials.java3
1 files changed, 1 insertions, 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()