Change imports
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type { BlockRegistry } from "$/common/everything_registry.ts";
|
||||
import type { SpriteRegion } from "$/common/constants.ts";
|
||||
import type { ModelJson } from "$/common/block_models.ts";
|
||||
import type { BlockRegistry } from "@/common/everything_registry.ts";
|
||||
import type { SpriteRegion } from "@/common/constants.ts";
|
||||
import type { ModelJson } from "@/common/block_models.ts";
|
||||
import type { SortType } from "./translucent_sort.ts";
|
||||
|
||||
// messages between the main thread and the chunk workers
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
block_light_opacity,
|
||||
type BlockRegistry,
|
||||
type RenderLayer,
|
||||
} from "$/common/everything_registry.ts";
|
||||
} from "@/common/everything_registry.ts";
|
||||
import {
|
||||
AIR,
|
||||
CHUNK_AREA,
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
ID_MASK,
|
||||
type SpriteRegion,
|
||||
TEXTURE_SIZE,
|
||||
} from "$/common/constants.ts";
|
||||
} from "@/common/constants.ts";
|
||||
import type { Texture } from "../renderer/types.ts";
|
||||
import {
|
||||
FACE_GROUPS,
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
is_tinted,
|
||||
looks_by_state,
|
||||
type ModelJson,
|
||||
} from "$/common/block_models.ts";
|
||||
} from "@/common/block_models.ts";
|
||||
import {
|
||||
choose_sort_type,
|
||||
FACE_AXIS,
|
||||
@@ -56,7 +56,7 @@ import {
|
||||
REGION_VOID,
|
||||
} from "./lighting.ts";
|
||||
import { cell_index, fluid_quads, type FluidCell } from "./fluid_mesh.ts";
|
||||
import { fluid_height, fluid_textures } from "$/common/everything_registry.ts";
|
||||
import { fluid_height, fluid_textures } from "@/common/everything_registry.ts";
|
||||
|
||||
type TexturesInfo = Record<string, SpriteRegion>;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// fluids drawn like luanti's flowing fluids (MapblockMeshGenerator::drawLiquidNode in its content_mapblock.cpp): each
|
||||
// corner of the surface is as high as the fluid around it, so it slopes down where it flows away from a source. the
|
||||
// sides between two cells of it are left out, except where it pours down past the surface of the one beside it
|
||||
import { FACE_CORNERS } from "$/common/block_models.ts";
|
||||
import { FACE_CORNERS } from "@/common/block_models.ts";
|
||||
|
||||
// one of the 3x3 cells around a fluid and level with it, and the cell above that one
|
||||
export interface FluidCell {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
// 3x3 chunks around the chunk being meshed, which gives the same result: light reaches at most 15
|
||||
// blocks, so nothing outside those chunks can light the middle one or its border
|
||||
|
||||
import { AIR, CHUNK_AREA, CHUNK_HEIGHT, CHUNK_SIZE, ID_MASK } from "$/common/constants.ts";
|
||||
import { AIR, CHUNK_AREA, CHUNK_HEIGHT, CHUNK_SIZE, ID_MASK } from "@/common/constants.ts";
|
||||
|
||||
export const REGION_SIZE = CHUNK_SIZE * 3;
|
||||
export const REGION_LAYER = REGION_SIZE * REGION_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user