File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # calendarjs
2- A calendar library for CraftersMC SkyBlock
1+ # 📅 CalendarJS
2+
3+ ** CalendarJS** is a lightweight time management library for ** CraftersMC Skyblock** .
4+
5+ ## 🚀 Usage
36
47``` javascript
58var {
@@ -25,4 +28,4 @@ console.log(`Crops for ${testEventId}: ${FarmingContestUtils.getCrops(testEventI
2528
2629currentEventId = FarmingContestUtils .getEventId ();
2730console .log (` Crops for ${ currentEventId} : ${ FarmingContestUtils .getCrops (currentEventId)} ` )
28- ```
31+ ```
Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ const CropType = Object.freeze([
2424] ) ;
2525
2626function shuffleWithRandom ( arr , rng ) {
27- const a = arr . slice ( ) ;
28- for ( let i = a . length - 1 ; i > 0 ; i -- ) {
29- const j = rng . nextInt ( i + 1 ) ; // [0, i]
30- const tmp = a [ i ] ; a [ i ] = a [ j ] ; a [ j ] = tmp ;
31- }
32- return a ;
27+ const a = arr . slice ( ) ;
28+ for ( let i = a . length - 1 ; i > 0 ; i -- ) {
29+ const j = rng . nextInt ( i + 1 ) ;
30+ [ a [ i ] , a [ j ] ] = [ a [ j ] , a [ i ] ] ;
31+ }
32+ return a ;
3333}
3434
3535function makeJavaRandomFromLongSeed ( longSeed ) {
You can’t perform that action at this time.
0 commit comments