Fix a mod crash

This commit is contained in:
zontreck 2023-11-19 05:12:23 -07:00
parent cd2a48bdfb
commit 29814e35b1
5 changed files with 6 additions and 27 deletions

View file

@ -94,13 +94,7 @@ public class Account
LongTermTransactionHistoryRecord rec = LongTermTransactionHistoryRecord.of(player_id);
rec.addHistory(history);
rec.commit();
try {
Bus.Post(new TransactionHistoryFlushEvent(this, rec, history));
} catch (InvocationTargetException e) {
throw new RuntimeException(e);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
Bus.Post(new TransactionHistoryFlushEvent(this, rec, history));
rec = null;
history = new ArrayList<>();
}