Skip to content

Commit

Permalink
Fix rebuilding kingdom, fix large house spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
SamB440 committed Mar 27, 2023
1 parent ef0d481 commit a270d96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ protected void build(FlowLayout rootComponent) {
.tooltip(Text.literal(cobblestoneCount.get() + " / 320")));

inner.child(
this.fixWholeKingdomButton = (ButtonComponent) Components.button(Text.literal("Fix whole kingdom"), c -> TaleOfKingdoms.getAPI().executeOnServer(() -> {
this.fixWholeKingdomButton = (ButtonComponent) Components.button(Text.literal("Fix whole kingdom"), c -> {
if (MinecraftClient.getInstance().getServer() == null) {
TaleOfKingdoms.getAPI().getClientPacketHandler(Packets.CITYBUILDER_ACTION)
.handleOutgoingPacket(player, entity.getId(), CityBuilderAction.FIX_KINGDOM);
return;
}

entity.fixKingdom(player, kingdom);
})).tooltip(List.of(
}).tooltip(List.of(
Text.literal("Repairing the kingdom costs:"),
Text.literal(" - 320 oak wood"),
Text.literal(" - 320 cobblestone")
Expand Down
Binary file not shown.

0 comments on commit a270d96

Please sign in to comment.