@adatechnology/game-fluids-three 0.4.13 → 0.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.global.js +2 -1
- package/dist/index.global.js.map +1 -1
- package/package.json +5 -5
package/dist/index.global.js
CHANGED
|
@@ -5681,7 +5681,7 @@ var GameFluidsThree = (() => {
|
|
|
5681
5681
|
const { core, def, random, x, y, z } = context;
|
|
5682
5682
|
const mark = def.mark;
|
|
5683
5683
|
const keepsMarks = !core.marklessAt?.(x, z);
|
|
5684
|
-
if (keepsMarks && mark.crater && mark.dent && y < 1.2) {
|
|
5684
|
+
if (keepsMarks && mark.crater && mark.dent && y < 1.2 && (core.cratersAt?.(x, z) ?? true)) {
|
|
5685
5685
|
core.emit({ type: "crater", x, z, radius: mark.crater, depth: mark.dent });
|
|
5686
5686
|
core.trace?.crater?.(x, z, mark.crater, mark.dent);
|
|
5687
5687
|
addCrater(core.marks, core.ground, random, { x, z, radius: mark.crater, depth: mark.dent, marks: core.layers.mark });
|
|
@@ -7439,6 +7439,7 @@ var GameFluidsThree = (() => {
|
|
|
7439
7439
|
clock: { time: 0, lastBlast: -1, lod: 1, forcedLod: null },
|
|
7440
7440
|
groundAt,
|
|
7441
7441
|
...options.marklessAt ? { marklessAt: options.marklessAt } : {},
|
|
7442
|
+
...options.cratersAt ? { cratersAt: options.cratersAt } : {},
|
|
7442
7443
|
emit: (request) => options.onRequest?.(request)
|
|
7443
7444
|
};
|
|
7444
7445
|
function definitionOf(id) {
|