Merge pull request #293 from KidsProgramming/BUG_example_commandtestjs
Small error in demo code, index missing
This commit is contained in:
commit
5a936bab20
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ commando( 'js-time' , function( params, sender ) {
|
||||||
i = 0;
|
i = 0;
|
||||||
if ( sender.location ) {
|
if ( sender.location ) {
|
||||||
for ( ; i < 4; i++ ) {
|
for ( ; i < 4; i++ ) {
|
||||||
if ( times.toLowerCase() == time ) {
|
if ( times[i].toLowerCase() == time ) {
|
||||||
sender.location.world.setTime( i * 6000 );
|
sender.location.world.setTime( i * 6000 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue