diff --git a/src/main/java/darkdustry/components/Database.java b/src/main/java/darkdustry/components/Database.java index 569fef8e..476e4002 100644 --- a/src/main/java/darkdustry/components/Database.java +++ b/src/main/java/darkdustry/components/Database.java @@ -2,7 +2,6 @@ import arc.func.Cons; import arc.func.Cons2; -import arc.util.Log; import com.mongodb.MongoClientSettings; import com.mongodb.client.model.ReplaceOptions; import com.mongodb.client.result.UpdateResult; @@ -37,16 +36,6 @@ public static void connect() { playersCollection = database.getCollection("players", PlayerData.class); - var format = client.getDatabase("darkdustry"); - var collection = format.getCollection("players"); - - Flux.from(collection.find()).doOnNext(document -> { - document.put("effects", "none"); - Log.info("Processed document @ (@)", document.getString("uuid"), document.getString("name")); - - Mono.from(collection.replaceOne(eq("uuid", document.getString("uuid")), document, new ReplaceOptions().upsert(true))).subscribe(); - }).subscribe(); - DarkdustryPlugin.info("Database connected."); } catch (Exception e) { DarkdustryPlugin.error("Failed to connect to the database: @", e);