fix puffles breaking after unlocking a code (#115)

movng the pgu packet from login to js solves the issue

with thanks to @ooowoothevirtualhowler for doing the actual discovery here, i just wrote it
This commit is contained in:
JeffTheRock
2026-07-22 20:09:43 -04:00
committed by GitHub
parent eac6143f28
commit 0840eadd8f
2 changed files with 2 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ from houdini.handlers.games.ninja.fire import CardJitsuFireLogic, FireMatLogic,
from houdini.handlers.games.ninja.water import CardJitsuWaterLogic, WaterSenseiLogic from houdini.handlers.games.ninja.water import CardJitsuWaterLogic, WaterSenseiLogic
from houdini.handlers.games.sled import SledRacingLogic from houdini.handlers.games.sled import SledRacingLogic
from houdini.handlers.games.treasure import TreasureHuntLogic from houdini.handlers.games.treasure import TreasureHuntLogic
from houdini.handlers.play.pet import get_my_player_puffles
TableLogicMapping = { TableLogicMapping = {
'four': ConnectFourLogic, 'four': ConnectFourLogic,
@@ -77,7 +78,7 @@ async def handle_join_server(p, penguin_id: int, login_key: str):
if login_key != p.login_key: if login_key != p.login_key:
return await p.close() return await p.close()
await p.send_xt('activefeatures') await p.send_xt('pgu', *get_my_player_puffles(p))
moderator_status = 3 if p.character else 2 if p.stealth_moderator else 1 if p.moderator else 0 moderator_status = 3 if p.character else 2 if p.stealth_moderator else 1 if p.moderator else 0

View File

@@ -242,8 +242,6 @@ async def load_pet_inventory(p):
p.puffles = await PenguinPuffleCollection.get_collection(p.id) p.puffles = await PenguinPuffleCollection.get_collection(p.id)
p.puffle_items = await PenguinPuffleItemCollection.get_collection(p.id) p.puffle_items = await PenguinPuffleItemCollection.get_collection(p.id)
await p.send_xt('pgu', *get_my_player_puffles(p))
@handlers.handler(XTPacket('p', 'getdigcooldown'), pre_login=True) @handlers.handler(XTPacket('p', 'getdigcooldown'), pre_login=True)
async def handle_get_dig_cooldown(p): async def handle_get_dig_cooldown(p):