Fixed redstone listener for newer versions of Bukkit.

This commit is contained in:
sk89q 2011-02-12 19:14:14 -08:00
parent feb9ce6633
commit 95b2d9419f

View File

@ -426,9 +426,9 @@ public void onBlockRightClick(BlockRightClickEvent event) {
* @param event Relevant event details
*/
@Override
public void onBlockRedstoneChange(BlockFromToEvent event) {
public void onBlockRedstoneChange(BlockRedstoneEvent event) {
World world = event.getBlock().getWorld();
Block blockTo = event.getToBlock();
Block blockTo = event.getBlock();
if (plugin.simulateSponge && plugin.redstoneSponges) {
int ox = blockTo.getX();