Skip to content

Commit

Permalink
refactor: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
manankarnik committed Mar 8, 2024
1 parent bd0f083 commit 23edbaf
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/routes/dev/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn setup(mut commands: Commands) {
<h2>Source Code and API Documentation</h2>
<p>
The source code for bevy_generative can be found on <a
href="https://github.com/manankarnik/procedra">Github</a
href="https://github.com/manankarnik/bevy_generative">Github</a
>. The complete API documentation for bevy_generative, including all the customizable
parameters, can be found <a href="https://docs.rs/bevy_generative">here</a>. Be sure to check
it out for detailed information on how to fine-tune your procedural generation to suit your
Expand Down
1 change: 0 additions & 1 deletion src/routes/generate/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script>
import { goto } from "$app/navigation";
import * as Card from "$lib/components/ui/card";
import map from "$lib/assets/map.png";
import terrain from "$lib/assets/terrain.png";
Expand Down
4 changes: 1 addition & 3 deletions src/routes/generate/[util]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ export async function load({ params, url }) {
if (utils.includes(params.util)) {
let asset;
if (url.searchParams.get("id")) {
if (url.searchParams.get("id")) {
asset = await prisma.asset.findUnique({ where: { id: url.searchParams.get("id") } });
}
asset = await prisma.asset.findUnique({ where: { id: url.searchParams.get("id") } });
}
return { asset: { data: JSON.stringify(asset?.data) }, util: params.util };
}
Expand Down
1 change: 0 additions & 1 deletion utils/planet/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,6 @@ fn publish(
color_type,
)
.expect("Failed to write to png");
info!("{:?}", thumbnail);
send_asset(&planet, &thumbnail_buffer);
});
commands.entity(entity.single()).insert(Gui);
Expand Down
1 change: 0 additions & 1 deletion utils/terrain/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ fn publish(
color_type,
)
.expect("Failed to write to png");
info!("{:?}", thumbnail);
send_asset(&terrain, &thumbnail_buffer);
});
commands.entity(entity.single()).insert(Gui);
Expand Down

0 comments on commit 23edbaf

Please sign in to comment.