Skip to content

Commit 3517650

Browse files
authored
Make private constructor public class Dimensions (JaylyDev#32)
Make private constructor public class
1 parent bd74da4 commit 3517650

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/dimensions/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@ export class Dimensions {
3636
*/
3737
static 'theEnd' = world.getDimension('minecraft:the_end');
3838
/** @protected */
39-
constructor() {};
39+
constructor() {
40+
throw new TypeError("Illegal constructor");
41+
};
4042
}

0 commit comments

Comments
 (0)