Skip to content

Commit 2447168

Browse files
authored
Modified the "not a child of container" error message
1 parent 3f0deec commit 2447168

File tree

1 file changed

+1
-2
lines changed
  • engine/modules/camera/src/main/java/com/codingame/gameengine/module/camera

1 file changed

+1
-2
lines changed

engine/modules/camera/src/main/java/com/codingame/gameengine/module/camera/CameraModule.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ public void addTrackedEntity(Entity<?> entity) {
105105
registered.put(id, true);
106106
}
107107
} else {
108-
throw new RuntimeException("The entity given can't be track because it's not the child of " +
109-
"the container / on of the container child !\n" +
108+
throw new RuntimeException("The entity given can't be tracked because it's not a child/successor of the tracked container!\n" +
110109
"Don't forget to init the camera with the setContainer method");
111110
}
112111
}

0 commit comments

Comments
 (0)