bucciafico-lib 1.0.5 → 1.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bucciafico-lib",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Modular 3D rendering engine for Minecraft skins based on Three.js",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -105,7 +105,7 @@ export class SkinViewer {
105
105
  * @returns {Object} The registered plugin instance.
106
106
  */
107
107
  addPlugin(plugin) {
108
- const name = plugin.constructor.name;
108
+ const name = plugin.name || plugin.constructor.name;
109
109
  if (this.plugins.has(name)) return this.plugins.get(name);
110
110
 
111
111
  if (plugin.init) plugin.init(this);
@@ -24,7 +24,7 @@ export class IOPlugin {
24
24
  const state = {
25
25
  meta: {
26
26
  generator: "Bucciafico Studio",
27
- version: "1.0.4-BETA",
27
+ version: "1.0.7-BETA",
28
28
  timestamp: Date.now()
29
29
  },
30
30
  core: {}