This repository was archived by the owner on Mar 8, 2022. It is now read-only.
Commit 3d831aa 1 parent 45c6694 commit 3d831aa Copy full SHA for 3d831aa
File tree 1 file changed +2
-2
lines changed
src/main/java/cat/nyaa/HamsterEcoHelper/database
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public Database(HamsterEcoHelper plugin) {
32
32
}
33
33
34
34
public List <ItemStack > getTemporaryStorage (OfflinePlayer player ) {
35
- try (Query <TempStorageRepo > result = database .queryTransactional (TempStorageRepo .class ).whereEq ("player_id" , player .getUniqueId ().toString ())) {
35
+ try (Query <TempStorageRepo > result = database .query (TempStorageRepo .class ).whereEq ("player_id" , player .getUniqueId ().toString ())) {
36
36
if (result .count () == 0 ) return Collections .emptyList ();
37
37
YamlConfiguration cfg = new YamlConfiguration ();
38
38
try {
@@ -51,7 +51,7 @@ public List<ItemStack> getTemporaryStorage(OfflinePlayer player) {
51
51
}
52
52
53
53
public void addTemporaryStorage (OfflinePlayer player , ItemStack item ) {
54
- try (Query <TempStorageRepo > result = database .queryTransactional (TempStorageRepo .class ).whereEq ("player_id" , player .getUniqueId ().toString ())) {
54
+ try (Query <TempStorageRepo > result = database .query (TempStorageRepo .class ).whereEq ("player_id" , player .getUniqueId ().toString ())) {
55
55
YamlConfiguration cfg = new YamlConfiguration ();
56
56
boolean update ;
57
57
if (result .count () == 0 ) {
You can’t perform that action at this time.
0 commit comments