diff --git a/bot.py b/bot.py index 2d970ef..2a34515 100644 --- a/bot.py +++ b/bot.py @@ -2,11 +2,12 @@ if __name__ == '__main__': print('Run main.py instead.') exit(1) +import os import time -USERNAME = '' -PASSWORD = '' -SERVER = '' +USERNAME = os.environ['USERNAME'] +PASSWORD = os.environ['PASSWORD'] +SERVER = os.environ['SERVER'] from custom.managers import DataManager, ChunksManager, ChatManager diff --git a/custom/networking/packets/clientbound/play/chunk_data.py b/custom/networking/packets/clientbound/play/chunk_data.py index 6b634d5..9e2e9b7 100644 --- a/custom/networking/packets/clientbound/play/chunk_data.py +++ b/custom/networking/packets/clientbound/play/chunk_data.py @@ -28,8 +28,8 @@ class ChunkDataPacket(Packet): self.data = file_object.read(size) size_entities = VarInt.read(file_object) self.entities = [] - #for i in range(size_entities): - # self.entities.append(Nbt.read(file_object)) + for i in range(size_entities): + self.entities.append(Nbt.read(file_object)) self.decode_chunk_data()