From 6923b87a653fef926b9466dd6cdc228ff9045df5 Mon Sep 17 00:00:00 2001 From: RTTV Date: Sun, 1 Dec 2024 15:57:00 -0500 Subject: [PATCH] and that removes the stupid " from" at the end --- .../earthcomputer/clientcommands/command/VillagerCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/earthcomputer/clientcommands/command/VillagerCommand.java b/src/main/java/net/earthcomputer/clientcommands/command/VillagerCommand.java index 41f8e995..f3b541a6 100644 --- a/src/main/java/net/earthcomputer/clientcommands/command/VillagerCommand.java +++ b/src/main/java/net/earthcomputer/clientcommands/command/VillagerCommand.java @@ -130,7 +130,7 @@ private static int addGoal( String firstString = first == null ? null : first.string() + " " + CUtil.boundsToString(firstCount); String secondString = second == null ? null : second.string() + " " + CUtil.boundsToString(secondCount); - String resultString = result.string() + " " + CUtil.boundsToString(resultCount); + String resultString = (result.string().endsWith(" from") ? result.string().substring(0, result.string().length() - " from".length()) : result.string()) + " " + CUtil.boundsToString(resultCount); VillagerCracker.goals.add(new VillagerCracker.Goal( resultString,