Skip to content

Commit

Permalink
fix(cache): tried specifying index to insert cache obj
Browse files Browse the repository at this point in the history
  • Loading branch information
seailz committed Jul 14, 2023
1 parent 8f086f6 commit eb94ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/seailz/discordjar/cache/Cache.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void cache(@NotNull T t) {
} catch (Exception e) {}
synchronized (cache) {
try {
cache.add(t);
cache.add(cache.size(), t);
} catch (Exception e) {
// We can ignore this - since the cache isn't critical.
// We'll print the stacktrace for debugging purposes.
Expand Down

0 comments on commit eb94ee1

Please sign in to comment.