Skip to content

Commit

Permalink
Fix small bug that broke towny vaults
Browse files Browse the repository at this point in the history
  • Loading branch information
GroobleDierne committed Aug 30, 2024
1 parent 3a43bf3 commit 4643ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/gestern/gringotts/data/EBeanDAO.java
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public boolean renameAccount(String type, String oldName, String newName) {
@Override
public synchronized List<AccountChest> retrieveChests(GringottsAccount account) {
if (!allChests.isEmpty()) {
return allChests.stream().filter(ac -> ac.account.owner.equals(account.owner)).collect(Collectors.toList());
return allChests.stream().filter(ac -> ac.account.owner.getId().equals(account.owner.getId())).collect(Collectors.toList());
}
SqlQuery getChests = db.sqlQuery("SELECT ac.world, ac.x, ac.y, ac.z, ac.total_value " +
"FROM gringotts_accountchest ac JOIN gringotts_account a ON ac.account = a.id " +
Expand Down

0 comments on commit 4643ae0

Please sign in to comment.