source.setData((byte) (sData - 1), true);
source.setData(sData, true);
// lets call blockredstone events on the source block and the lever
// in order to correctly update all surrounding blocks
BlockRedstoneEvent leverEvent = new BlockRedstoneEvent(block, wasOn ? 15 : 0, state ? 15 : 0);
BlockRedstoneEvent sourceEvent = new BlockRedstoneEvent(source, wasOn ? 15 : 0, state ? 15 : 0);
CraftBookPlugin.inst().getServer().getPluginManager().callEvent(leverEvent);
CraftBookPlugin.inst().getServer().getPluginManager().callEvent(sourceEvent);
return true;
}