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);