Skip to content

Commit 426c4f1

Browse files
authored
Debug error removeComponent correct method name (#6848)
* added error handling for creating entity without app * removed error handling for _app in addComponent/removeComponent
1 parent b74562d commit 426c4f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/framework/entity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ class Entity extends GraphNode {
406406
removeComponent(type) {
407407
const system = this._app.systems[type];
408408
if (!system) {
409-
Debug.error(`addComponent: System '${type}' doesn't exist`);
409+
Debug.error(`removeComponent: System '${type}' doesn't exist`);
410410
return;
411411
}
412412
if (!this.c[type]) {

0 commit comments

Comments
 (0)