Comment out entity despawning

This commit is contained in:
memetrollsXD 2022-08-03 04:15:56 +02:00
parent 73593ef8e0
commit 73841ac1d9
No known key found for this signature in database
GPG Key ID: 105C2F3417AC32CD

View File

@ -11,7 +11,7 @@ export default async function handle(session: Session, packet: Packet) {
for (const entityMotion of body.entityMotionList) { for (const entityMotion of body.entityMotionList) {
const entity = session.player.scene.entities.get(entityMotion.entityId); const entity = session.player.scene.entities.get(entityMotion.entityId);
if (!entity) { //what?? if (!entity) { //what??
session.player.scene.despawnEntity(entityMotion.entityId); // session.player.scene.despawnEntity(entityMotion.entityId);
continue; continue;
} }
const motion = entityMotion.motion; const motion = entityMotion.motion;