Skip to content

Commit

Permalink
fix serenitea pot main building
Browse files Browse the repository at this point in the history
  • Loading branch information
pfyy authored and Melledy committed Sep 2, 2022
1 parent 735b48e commit f93d998
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ public static class HomeBlock{
@SerializedName(value = "FGIJCELCGFI", alternate = "PGDPDIDJEEL")
int blockId;

@SerializedName(value = "BEAPOFELABD", alternate = "MLIODLGDFHJ")
@SerializedName("BEAPOFELABD")
List<HomeFurniture> furnitures;

@SerializedName("MLIODLGDFHJ")
List<HomeFurniture> persistentFurnitures;
}

@Data
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/emu/grasscutter/game/home/HomeBlockItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,13 @@ public static HomeBlockItem parseFrom(HomeworldDefaultSaveData.HomeBlock homeBlo
homeBlock.getFurnitures().stream()
.map(HomeFurnitureItem::parseFrom)
.toList())
.persistentFurnitureList(
homeBlock.getPersistentFurnitures() == null ? List.of() :
homeBlock.getPersistentFurnitures().stream()
.map(HomeFurnitureItem::parseFrom)
.toList())
.deployAnimalList(List.of())
.deployNPCList(List.of())
.persistentFurnitureList(List.of())
.build();
}
}

0 comments on commit f93d998

Please sign in to comment.