Skip to content

Commit

Permalink
Functional change Lignum suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojbie committed Jul 28, 2017
1 parent 225ec59 commit acb5f65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -55,9 +55,9 @@ public BlockPos getPos()
return m_speaker.getPos();
}

public synchronized boolean madeSound()
public synchronized boolean madeSound(long ticks)
{
return (m_clock - m_lastPlayTime <= 20) ;
return (m_clock - m_lastPlayTime <= ticks) ;
}

/* IPeripheral implementation */
Expand Down
Expand Up @@ -75,7 +75,7 @@ else if ( entity != null )
speaker.setLocation( entity.getEntityWorld(), entity.posX, entity.posY, entity.posZ );
}
speaker.update();
access.setLight( speaker.madeSound() ? 0x3320fc : -1 );
access.setLight( speaker.madeSound(20) ? 0x3320fc : -1 );
}
}

Expand Down

0 comments on commit acb5f65

Please sign in to comment.