Skip to content

Commit

Permalink
Make blocktype work with numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
walterhiggins committed Nov 8, 2015
1 parent e8895d7 commit 4aa28c0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/main/js/modules/drone/blocktype.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,18 @@ var bitmaps = {
' '+
' '+
' ',

'(': ' # '+
' # '+
' # '+
' # '+
' # ',

')': ' # '+
' # '+
' # '+
' # '+
' # ',

' ':' '+
' '+
Expand Down Expand Up @@ -352,7 +364,7 @@ function blocktype( message, fg, bg, immediate ) {
if ( typeof bg != 'undefined' ) {
bmbg = this.getBlockIdAndMeta( bg );
}
lines = message.split( '\n' );
lines = (''+ message).split( '\n' );
lineCount = lines.length;

for ( h = 0; h < lineCount; h++) {
Expand Down

0 comments on commit 4aa28c0

Please sign in to comment.