Super-Santa / EssentialAddons

Fabric Carpet extension that adds things from the Spigot plugin Essentials, or other features I think are needed for Minecraft
MIT License
50 stars 7 forks source link

JsonSyntaxException while reading camera data #2

Closed Crec0 closed 3 years ago

Crec0 commented 3 years ago

i was doing nothing but restarting my minecraft instance and this happened. Guess the camera data saving is not saving in proper syntax and when reading it crashes. Crash log subscribedata.json contains this data

{
  "215133b1-00b9-481c-8fd9-875d0eab40c7": {
    "isSubscribedCarefulBreak": true,
    "isSubscribedTeleportBlacklist": false
  }
}
Crec0 commented 3 years ago

Looks correct to me idk why the code didn't like it. weird. Also, it says it wrote camera data file, I was unable to find the file in my minecraft instance directory. Could be a wrong logging there

senseiwells commented 3 years ago

Camera data is stored seperately from subscribe data, the camera data file will be deleted if there is no data to be stored, so if you stop the server with no players in cs there is no data to store so it just deletes it, I will remove the log. this should fix it