From 4794358b5b900e749086be92fb57d0292babbe74 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 7 Apr 2020 23:39:30 +0100 Subject: [PATCH] Ignore `epfgf` packet when sent pre-login --- houdini/handlers/play/epf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/houdini/handlers/play/epf.py b/houdini/handlers/play/epf.py index d74d706..038da7c 100644 --- a/houdini/handlers/play/epf.py +++ b/houdini/handlers/play/epf.py @@ -74,7 +74,8 @@ async def handle_set_agent_status(p): await p.send_xt('epfsa', int(p.agent_status)) -@handlers.handler(XTPacket('f', 'epfgf')) +@handlers.handler(XTPacket('f', 'epfgf'), pre_login=True) +@handlers.player_attribute(joined_world=True) async def handle_get_field_op_status(p): today = datetime.date.today() monday = today - datetime.timedelta(days=today.weekday())