Skip to content

Commit

Permalink
fixed merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke100000 committed Feb 4, 2023
1 parent 4864558 commit cf849d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions common/src/main/java/net/mca/entity/ai/GPT3.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,6 @@ public static Optional<String> answer(ServerPlayerEntity player, VillagerEntityM
} catch (Exception e) {
MCA.LOGGER.error(e);
player.sendMessage(Text.translatable("mca.ai_broken").formatted(Formatting.RED), false);
}
} catch (Exception e) {
MCA.LOGGER.error(e);
player.sendMessage(new TranslatableText("mca.ai_broken").formatted(Formatting.RED), false);
}

return Optional.empty();
Expand Down
2 changes: 1 addition & 1 deletion common/src/main/java/net/mca/entity/ai/Residency.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public BlockPos getWorkplace() {

public void setWorkplace(ServerPlayerEntity player) {
PointOfInterestStorage pointOfInterestStorage = player.getWorld().getPointOfInterestStorage();
pointOfInterestStorage.getNearestPosition(VillagerProfession.NONE.getCompletionCondition(), (a) -> true, entity.getBlockPos(), 8, PointOfInterestStorage.OccupationStatus.HAS_SPACE).ifPresentOrElse(blockPos -> {
pointOfInterestStorage.getNearestPosition(VillagerProfession.NONE.acquirableWorkstation(), (a) -> true, entity.getBlockPos(), 8, PointOfInterestStorage.OccupationStatus.HAS_SPACE).ifPresentOrElse(blockPos -> {
pointOfInterestStorage.getType(blockPos).ifPresent((pointOfInterestType) -> {
pointOfInterestStorage.getPosition(VillagerProfession.NONE.acquirableWorkstation(), (registryEntry, blockPos2) -> {
return blockPos2.equals(blockPos);
Expand Down

0 comments on commit cf849d9

Please sign in to comment.