mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-01-05 23:37:44 +01:00
execute batch as a batch
This commit is contained in:
parent
2ab971d278
commit
1c4487d848
@ -36,7 +36,6 @@ public class DataManager {
|
|||||||
for (SpawnerStack spawnerStack : spawnerStacks) {
|
for (SpawnerStack spawnerStack : spawnerStacks) {
|
||||||
statement.setInt(1, spawnerStack.getAmount());
|
statement.setInt(1, spawnerStack.getAmount());
|
||||||
statement.setInt(2, spawnerStack.getId());
|
statement.setInt(2, spawnerStack.getId());
|
||||||
statement.executeUpdate();
|
|
||||||
statement.addBatch();
|
statement.addBatch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user