Move custom packets to own file and monkey-patch them in

This commit is contained in:
2020-05-26 23:48:59 -06:00
parent 1d4adb796a
commit 9ce9a47493
4 changed files with 107 additions and 88 deletions
+2 -1
View File
@@ -12,13 +12,14 @@ import re
import time
from optparse import OptionParser
import bot
from minecraft import authentication
from minecraft.exceptions import YggdrasilError
from minecraft.networking.connection import Connection
from minecraft.networking.packets import Packet, clientbound, serverbound
from minecraft.compat import input
import bot
get_mod_time = lambda: os.path.getmtime('bot.py')