diff --git a/src/components/map/dice/DiceTrayOverlay.js b/src/components/map/dice/DiceTrayOverlay.js index 533fac9..1be2993 100644 --- a/src/components/map/dice/DiceTrayOverlay.js +++ b/src/components/map/dice/DiceTrayOverlay.js @@ -154,17 +154,17 @@ function DiceTrayOverlay({ isOpen }) { } } - async function handleDiceAdd(style, type) { + function handleDiceAdd(style, type) { const scene = sceneRef.current; const shadowGenerator = shadowGeneratorRef.current; if (scene && shadowGenerator) { - const instance = await style.createInstance(type, scene); + const instance = style.createInstance(type, scene); shadowGenerator.addShadowCaster(instance); Dice.roll(instance); let dice = { type, instance, asleep: false }; // If we have a d100 add a d10 as well if (type === "d100") { - const d10Instance = await style.createInstance("d10", scene); + const d10Instance = style.createInstance("d10", scene); shadowGenerator.addShadowCaster(d10Instance); Dice.roll(d10Instance); dice.d10Instance = d10Instance; diff --git a/src/dice/Dice.js b/src/dice/Dice.js index 8fd90df..831c604 100644 --- a/src/dice/Dice.js +++ b/src/dice/Dice.js @@ -138,7 +138,7 @@ class Dice { ); } - static async createInstance(mesh, physicalProperties, scene) { + static createInstance(mesh, physicalProperties, scene) { this.instanceCount++; return this.createInstanceFromMesh( diff --git a/src/dice/galaxy/GalaxyDice.js b/src/dice/galaxy/GalaxyDice.js index 2c345ab..4c8f38e 100644 --- a/src/dice/galaxy/GalaxyDice.js +++ b/src/dice/galaxy/GalaxyDice.js @@ -21,7 +21,7 @@ class GalaxyDice extends Dice { } } - static async createInstance(diceType, scene) { + static createInstance(diceType, scene) { if (!this.material || !this.meshes) { throw Error("Dice not loaded, call load before creating an instance"); } diff --git a/src/dice/gemstone/GemstoneDice.js b/src/dice/gemstone/GemstoneDice.js index 2ad1c07..3ef7253 100644 --- a/src/dice/gemstone/GemstoneDice.js +++ b/src/dice/gemstone/GemstoneDice.js @@ -46,7 +46,7 @@ class GemstoneDice extends Dice { } } - static async createInstance(diceType, scene) { + static createInstance(diceType, scene) { if (!this.material || !this.meshes) { throw Error("Dice not loaded, call load before creating an instance"); } diff --git a/src/dice/glass/GlassDice.js b/src/dice/glass/GlassDice.js index 8714d0e..386e6ce 100644 --- a/src/dice/glass/GlassDice.js +++ b/src/dice/glass/GlassDice.js @@ -48,7 +48,7 @@ class GlassDice extends Dice { } } - static async createInstance(diceType, scene) { + static createInstance(diceType, scene) { if (!this.material || !this.meshes) { throw Error("Dice not loaded, call load before creating an instance"); } diff --git a/src/dice/iron/IronDice.js b/src/dice/iron/IronDice.js index 1f9c29f..fef1983 100644 --- a/src/dice/iron/IronDice.js +++ b/src/dice/iron/IronDice.js @@ -26,7 +26,7 @@ class IronDice extends Dice { } } - static async createInstance(diceType, scene) { + static createInstance(diceType, scene) { if (!this.material || !this.meshes) { throw Error("Dice not loaded, call load before creating an instance"); } diff --git a/src/dice/nebula/NebulaDice.js b/src/dice/nebula/NebulaDice.js index 19f614b..897afc3 100644 --- a/src/dice/nebula/NebulaDice.js +++ b/src/dice/nebula/NebulaDice.js @@ -21,7 +21,7 @@ class NebulaDice extends Dice { } } - static async createInstance(diceType, scene) { + static createInstance(diceType, scene) { if (!this.material || !this.meshes) { throw Error("Dice not loaded, call load before creating an instance"); } diff --git a/src/dice/shared/d10.glb b/src/dice/shared/d10.glb index 4ae931f..ec0da4a 100644 Binary files a/src/dice/shared/d10.glb and b/src/dice/shared/d10.glb differ diff --git a/src/dice/shared/d100.glb b/src/dice/shared/d100.glb index e3e1a63..45de7e2 100644 Binary files a/src/dice/shared/d100.glb and b/src/dice/shared/d100.glb differ diff --git a/src/dice/shared/d12.glb b/src/dice/shared/d12.glb index 977a4d6..ef2284f 100644 Binary files a/src/dice/shared/d12.glb and b/src/dice/shared/d12.glb differ diff --git a/src/dice/shared/d20.glb b/src/dice/shared/d20.glb index dc21540..7894171 100644 Binary files a/src/dice/shared/d20.glb and b/src/dice/shared/d20.glb differ diff --git a/src/dice/shared/d4.glb b/src/dice/shared/d4.glb index 168629c..352d96a 100644 Binary files a/src/dice/shared/d4.glb and b/src/dice/shared/d4.glb differ diff --git a/src/dice/shared/d6.glb b/src/dice/shared/d6.glb index 5d57c9b..3c3410b 100644 Binary files a/src/dice/shared/d6.glb and b/src/dice/shared/d6.glb differ diff --git a/src/dice/shared/d8.glb b/src/dice/shared/d8.glb index 048a83d..60e335d 100644 Binary files a/src/dice/shared/d8.glb and b/src/dice/shared/d8.glb differ diff --git a/src/dice/sunrise/SunriseDice.js b/src/dice/sunrise/SunriseDice.js index 62f0db1..85a760e 100644 --- a/src/dice/sunrise/SunriseDice.js +++ b/src/dice/sunrise/SunriseDice.js @@ -21,7 +21,7 @@ class SunriseDice extends Dice { } } - static async createInstance(diceType, scene) { + static createInstance(diceType, scene) { if (!this.material || !this.meshes) { throw Error("Dice not loaded, call load before creating an instance"); } diff --git a/src/dice/sunset/SunsetDice.js b/src/dice/sunset/SunsetDice.js index 5ea5d84..3c6badc 100644 --- a/src/dice/sunset/SunsetDice.js +++ b/src/dice/sunset/SunsetDice.js @@ -21,7 +21,7 @@ class SunsetDice extends Dice { } } - static async createInstance(diceType, scene) { + static createInstance(diceType, scene) { if (!this.material || !this.meshes) { throw Error("Dice not loaded, call load before creating an instance"); } diff --git a/src/dice/walnut/WalnutDice.js b/src/dice/walnut/WalnutDice.js index 628a4cc..fbcc931 100644 --- a/src/dice/walnut/WalnutDice.js +++ b/src/dice/walnut/WalnutDice.js @@ -48,7 +48,7 @@ class WalnutDice extends Dice { } } - static async createInstance(diceType, scene) { + static createInstance(diceType, scene) { if (!this.material || !this.meshes) { throw Error("Dice not loaded, call load before creating an instance"); } diff --git a/src/dice/walnut/d4.glb b/src/dice/walnut/d4.glb index 6f873ef..d2e9c6d 100644 Binary files a/src/dice/walnut/d4.glb and b/src/dice/walnut/d4.glb differ