Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Commit eceb295

Browse files
committed
fix
1 parent 2d3eb45 commit eceb295

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Dimension, Entity } from "mojang-minecraft";
22

33

4-
export default class Command {
4+
export class Command {
55
#run(command, object) {
66
if(object.runCommand === undefined) return;
77
return object.runCommand(command);

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
export * from "./utils/index.js";
22
export { Event } from "./event.js";
33
export { GameRule } from "./gamerule.js";
4-
export { default as Command } from "./command.js";
4+
export { Command } from "./command.js";
55
export { World } from "./world.js";
66
export { Tick } from "./tick.js";
77
export { Tag } from "./tag.js";
88
export { Player } from "./player.js";
99
export { Scoreboard } from "./scoreboard.js";
10-
export { EventEmitter } from "./eventEmitter.js";
10+
// export { EventEmitter } from "./eventEmitter.js";
1111
export { RawTextBuilder } from "./rawTextBuilder/index.js";

src/rawTextBuilder/components/translateComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default class TranslateComponent extends Base {
1515

1616
build() {
1717
const result = { [this.name]: this.value.translate };
18-
if(this.value.with <= 0) {
18+
if(this.value.with.length <= 0) {
1919
return result;
2020
}
2121
return { ...result, with: this.#getWith() };

0 commit comments

Comments
 (0)