mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-02-04 17:22:13 +01:00
Fix Sumeru Main House bricking accounts
This is only for the house, not the full realm
This commit is contained in:
@@ -69,8 +69,11 @@ public class GameHome {
|
||||
if (defaultItem != null) {
|
||||
Grasscutter.getLogger().info("Set player {} home {} to initial setting", ownerUid, sceneId);
|
||||
return HomeSceneItem.parseFrom(defaultItem, sceneId);
|
||||
}else{
|
||||
// Sumeru res missing bricks account, use default realm data to allow main house in other realms
|
||||
defaultItem = GameData.getHomeworldDefaultSaveData().get(2001);
|
||||
return HomeSceneItem.parseFrom(defaultItem, sceneId);
|
||||
}
|
||||
return null;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ public class HandlerHomeModuleSeenReq extends PacketHandler {
|
||||
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
|
||||
var req = HomeModuleSeenReq.parseFrom(payload);
|
||||
var seen = req.getSeenModuleIdListList();
|
||||
|
||||
// TODO: Make 'seen' status persist
|
||||
session.send(new PacketHomeModuleSeenRsp(seen));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user