Replace use of deprecated internal debugLog with logger.debug

This commit is contained in:
CosminPerRam 2023-09-18 10:48:24 +03:00
parent ca69e76ed3
commit bff9507189
12 changed files with 64 additions and 69 deletions

View file

@ -34,13 +34,13 @@ export default class minecraftvanilla extends Core {
const reader = this.reader(data);
const packetId = reader.varint();
this.debugLog("Packet ID: "+packetId);
this.logger.debug("Packet ID: "+packetId);
const strLen = reader.varint();
this.debugLog("String Length: "+strLen);
this.logger.debug("String Length: "+strLen);
const str = reader.rest().toString('utf8');
this.debugLog(str);
this.logger.debug(str);
const json = JSON.parse(str);
delete json.favicon;