Fix a mod crash
This commit is contained in:
parent
cd2a48bdfb
commit
29814e35b1
5 changed files with 6 additions and 27 deletions
|
@ -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<>();
|
||||
}
|
||||
|
|
Reference in a new issue