Skip to content

Commit f6e2391

Browse files
committed
Fix Croesus chest command not working
1 parent ebfb3dd commit f6e2391

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/net/azureaaron/mod/commands/skyblock/CroesusCommand.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ public void print(FabricClientCommandSource source, JsonObject body, String name
9090
for (JsonElement run : treasures.get("runs").getAsJsonArray()) {
9191
JsonObject iteratedRun = run.getAsJsonObject();
9292

93+
// Temp fix
94+
if (iteratedRun.get("type").getAsString().equals("KUUDRA")) continue;
95+
9396
if (iteratedRun.get("completion_ts").getAsLong() > twoDaysAgo && iteratedRun.get("dungeon_tier").getAsInt() != 0) {
9497
runs.put(iteratedRun.get("run_id").getAsString(), new RunData(iteratedRun.get("completion_ts").getAsLong(), iteratedRun.get("dungeon_tier").getAsInt(), iteratedRun.get("dungeon_type").getAsString(), new ArrayList<ChestData>()));
9598
} else {
@@ -112,6 +115,9 @@ public void print(FabricClientCommandSource source, JsonObject body, String name
112115
String chestRunId = iteratedChest.get("run_id").getAsString();
113116
boolean chestPaid = iteratedChest.get("paid").getAsBoolean();
114117

118+
// Temp fix
119+
if (iteratedChest.get("type").getAsString().equals("KUUDRA")) continue;
120+
115121
//If the chest isn't yet apart of the claimedRuns HashSet and it was paid for
116122
if (!claimedRuns.contains(chestRunId) && chestPaid) {
117123
claimedRuns.add(chestRunId);

0 commit comments

Comments
 (0)