From 4f9d0568860abfddf59aee380a0133c320122cfb Mon Sep 17 00:00:00 2001 From: holly Date: Wed, 18 Aug 2021 01:26:04 +0100 Subject: [PATCH] more entity stuff --- server/Entities/Entity.js | 2 ++ server/Entities/EntityPlayer.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/server/Entities/Entity.js b/server/Entities/Entity.js index 4895783..b891f10 100644 --- a/server/Entities/Entity.js +++ b/server/Entities/Entity.js @@ -1,5 +1,7 @@ class Entity { constructor(x = 0, y = 0, z = 0, yaw = 0, pitch = 0) { + this.EID = global.fromIDPool(); + this.x = x; this.y = y; this.z = z; diff --git a/server/Entities/EntityPlayer.js b/server/Entities/EntityPlayer.js index 7bd5b27..1881a21 100644 --- a/server/Entities/EntityPlayer.js +++ b/server/Entities/EntityPlayer.js @@ -1,7 +1,7 @@ const EntityLiving = require("./EntityLiving.js"); class EntityPlayer extends EntityLiving { - constructor(itemID = 0x00, x = 0, y = 0, z = 0) { + constructor(x = 0, y = 0, z = 0) { super(x, y, z); this.motionX = (Math.random() * 0.2 - 0.1);