From 693e987b4ee66ce9da45fc357d6ba4e09f71f5fb Mon Sep 17 00:00:00 2001 From: OGDemonZ <71907588+OGDemonZ@users.noreply.github.com> Date: Sat, 4 Jan 2025 00:33:53 -0700 Subject: [PATCH] format --- extensions/Corbnorb/noise.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/extensions/Corbnorb/noise.js b/extensions/Corbnorb/noise.js index f65aef47cc..a7acd92363 100644 --- a/extensions/Corbnorb/noise.js +++ b/extensions/Corbnorb/noise.js @@ -9,7 +9,7 @@ "use strict"; const noises = Object.create(null); - const noiseMenu = [{text: "myNoise", value: "myNoise"}] + const noiseMenu = [{ text: "myNoise", value: "myNoise" }]; const BlockType = Scratch.BlockType; const ArgumentType = Scratch.ArgumentType; @@ -99,7 +99,7 @@ menus: { NOISES: { acceptReporters: true, - items: "getNoises" + items: "getNoises", }, NOISE_TYPE: { acceptReporters: true, @@ -131,8 +131,7 @@ }; } - getNoises() - { + getNoises() { return noiseMenu; } @@ -143,7 +142,9 @@ const frequency = Cast.toNumber(args.FREQUENCY); const octaves = Cast.toNumber(args.OCTAVES); noises[id] = new FastNoiseLite(seed); - if(!noiseMenu.some(e => e.value === id)) {noiseMenu.push({text:id, value:id})} + if (!noiseMenu.some((e) => e.value === id)) { + noiseMenu.push({ text: id, value: id }); + } switch (args.TYPE) { case "openSimplex2": noises[id].SetNoiseType(FastNoiseLite.NoiseType.OpenSimplex2);