From fb71908e278485b7aefaf50a9794de14dec3844c Mon Sep 17 00:00:00 2001 From: Zach Dahl Date: Sat, 30 Oct 2021 23:18:15 -0500 Subject: [PATCH] fix #1 --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cf8129e..5df61c4 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,7 @@ const world = World({}); world .register(Name) - .register(Velocity) - ; + .register(Velocity); // Entities const bob = world.entity() @@ -118,7 +117,7 @@ Attempting to attach to an unknown entity will throw an error. ```ts const myEntity = world.entity().build(); -myEntity.add(Name, myEntity)("Roger"); +world.add(Name, myEntity)("Roger"); ``` ### get Returns given component for entity. Will return null if not found.