summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <md_5@bigpond.com>2012-03-05 18:40:18 +1100
committermd_5 <md_5@bigpond.com>2012-03-05 18:40:18 +1100
commitd83437e3942f7323e4883118bb645d26b62d3f7a (patch)
tree1ee79e6c9343b981bfb17869cd4413ee20a4faaf
parent3306ff6b64072674af112e7dbe5857fb3f1e9dbf (diff)
downloadEssentials-d83437e3942f7323e4883118bb645d26b62d3f7a.tar
Essentials-d83437e3942f7323e4883118bb645d26b62d3f7a.tar.gz
Essentials-d83437e3942f7323e4883118bb645d26b62d3f7a.tar.lz
Essentials-d83437e3942f7323e4883118bb645d26b62d3f7a.tar.xz
Essentials-d83437e3942f7323e4883118bb645d26b62d3f7a.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()