Recent content by tartur

  1. tartur

    Solved (De)serializing ItemStack as byte arrays goes wrong with MongoDB connection

    I saved this problem using Base64 encoding as follows: @Override public Document save() { final Inventory inventory = this.player.getInventory(); return new Document() .append("_id", this.player.getUniqueId().toString()) .append("contents"...
  2. tartur

    Solved (De)serializing ItemStack as byte arrays goes wrong with MongoDB connection

    Hi, I'm currently working on a Folia 1.21.4 project in which I work with a MongoDB connection that I use to store player's serialized inventories. Here are the methods I'm using to convert ItemStack to MongoDB Document instances and vice-versa: @Override public Document save() { final...