Skip to content

Commit

Permalink
fixed blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke100000 committed Feb 4, 2023
1 parent eab9488 commit ba2b776
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 7.4.4

* Fixed missing skin color on hands
* Fixed blueprint on dedicated servers

# 7.4.3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ public void setVillage(Village village) {
}
}

public void setRank(Rank rank, int reputation, boolean isVillage, Set<String> completedTasks, Map<Rank, List<Task>> tasks, Map<String, BuildingType> buildingTypes) {
public void setVillageData(Rank rank, int reputation, boolean isVillage, Set<String> completedTasks, Map<Rank, List<Task>> tasks, Map<String, BuildingType> buildingTypes) {
this.rank = rank;
this.reputation = reputation;
this.isVillage = isVillage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void handleVillageDataResponse(GetVillageResponse message) {
if (screen instanceof BlueprintScreen gui) {
Village village = new Village(message.getData(), null);
gui.setVillage(village);
gui.setRank(message.rank, message.reputation, message.isVillage, message.ids, message.tasks, message.buildingTypes);
gui.setVillageData(message.rank, message.reputation, message.isVillage, message.ids, message.tasks, message.buildingTypes);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public Village(NbtCompound v, @Nullable ServerWorld world) {
for (int i = 0; i < b.size(); i++) {
Building building = new Building(b.getCompound(i));

if (BuildingTypes.getInstance().getBuildingTypes().containsKey(building.getType())) {
if (world == null || BuildingTypes.getInstance().getBuildingTypes().containsKey(building.getType())) {
buildings.put(building.getId(), building);
}
}
Expand Down

0 comments on commit ba2b776

Please sign in to comment.