fix serenitea pot main building

This commit is contained in:
pfyy 2022-09-02 22:24:43 +08:00 committed by Melledy
parent 735b48edca
commit f93d998ff0
2 changed files with 9 additions and 2 deletions

View File

@ -34,8 +34,11 @@ public class HomeworldDefaultSaveData {
@SerializedName(value = "FGIJCELCGFI", alternate = "PGDPDIDJEEL") @SerializedName(value = "FGIJCELCGFI", alternate = "PGDPDIDJEEL")
int blockId; int blockId;
@SerializedName(value = "BEAPOFELABD", alternate = "MLIODLGDFHJ") @SerializedName("BEAPOFELABD")
List<HomeFurniture> furnitures; List<HomeFurniture> furnitures;
@SerializedName("MLIODLGDFHJ")
List<HomeFurniture> persistentFurnitures;
} }
@Data @Data

View File

@ -75,9 +75,13 @@ public class HomeBlockItem {
homeBlock.getFurnitures().stream() homeBlock.getFurnitures().stream()
.map(HomeFurnitureItem::parseFrom) .map(HomeFurnitureItem::parseFrom)
.toList()) .toList())
.persistentFurnitureList(
homeBlock.getPersistentFurnitures() == null ? List.of() :
homeBlock.getPersistentFurnitures().stream()
.map(HomeFurnitureItem::parseFrom)
.toList())
.deployAnimalList(List.of()) .deployAnimalList(List.of())
.deployNPCList(List.of()) .deployNPCList(List.of())
.persistentFurnitureList(List.of())
.build(); .build();
} }
} }