Skip to content

Commit

Permalink
Update Entity.js
Browse files Browse the repository at this point in the history
  • Loading branch information
EntityPlantt committed Mar 18, 2022
1 parent 61602eb commit 96b4481
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Entity.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Entities from "./Entities.js";
import EntityType from "./EntityType.js";
import ActionResult from "./ActionResult.js";
export default class Entity {
constructor(type, x = 0, y = 0) {
if (!(type instanceof EntityType))
Expand All @@ -16,6 +17,7 @@ export default class Entity {
this.uuid = crypto.randomUUID();
this.type.onSpawn(this);
}
x = 0; y = 0;
type = Entities.AIR;
health = Infinity;
motion = {
Expand Down

0 comments on commit 96b4481

Please sign in to comment.