simplified-mojang-api 0.0.23 → 0.0.24
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.
|
@@ -15,6 +15,7 @@ export class BaseEventManager {
|
|
|
15
15
|
* @author HaJuegos - 11-03-2026
|
|
16
16
|
*/
|
|
17
17
|
register(callback) {
|
|
18
|
+
const registrationTrace = new Error().stack;
|
|
18
19
|
this.evnSignal.subscribe((args) => {
|
|
19
20
|
try {
|
|
20
21
|
callback(args);
|
|
@@ -32,6 +33,11 @@ export class BaseEventManager {
|
|
|
32
33
|
}
|
|
33
34
|
console.warn(customMessage);
|
|
34
35
|
console.warn(err.stack);
|
|
36
|
+
if (registrationTrace) {
|
|
37
|
+
console.warn("\n[CATLOG TIP]: TRACE DE ORIGEN (Archivo real donde creaste este evento)");
|
|
38
|
+
const cleanTrace = registrationTrace.split('\n').slice(1).join('\n');
|
|
39
|
+
console.warn(cleanTrace);
|
|
40
|
+
}
|
|
35
41
|
}
|
|
36
42
|
});
|
|
37
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simplified-mojang-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "About Public repository to simplify the event logic of Mojang's Script API, for informal or professional use",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"typescript": "^5.9.3"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@minecraft/debug-utilities": "1.0.0-beta.1.26.
|
|
43
|
+
"@minecraft/debug-utilities": "1.0.0-beta.1.26.10-stable",
|
|
44
44
|
"@minecraft/gameplay-utilities": "1.3.0",
|
|
45
|
-
"@minecraft/server": "2.
|
|
46
|
-
"@minecraft/server-gametest": "1.0.0-beta.1.26.
|
|
47
|
-
"@minecraft/server-graphics": "1.0.0-beta.1.26.
|
|
48
|
-
"@minecraft/server-net": "1.0.0-beta.1.26.
|
|
49
|
-
"@minecraft/server-ui": "2.1.0-beta.1.26.
|
|
45
|
+
"@minecraft/server": "2.7.0-beta.1.26.10-stable",
|
|
46
|
+
"@minecraft/server-gametest": "1.0.0-beta.1.26.10-stable",
|
|
47
|
+
"@minecraft/server-graphics": "1.0.0-beta.1.26.10-stable",
|
|
48
|
+
"@minecraft/server-net": "1.0.0-beta.1.26.10-stable",
|
|
49
|
+
"@minecraft/server-ui": "2.1.0-beta.1.26.10-stable",
|
|
50
50
|
"@minecraft/vanilla-data": "1.26.2"
|
|
51
51
|
}
|
|
52
52
|
}
|