mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2025-02-19 05:41:29 +01:00
Fix import and export of challenges. Added Tag TypeAdapter from BBox
This commit is contained in:
parent
d405390339
commit
23dae376b8
@ -40,6 +40,7 @@ import world.bentobox.bentobox.api.addons.GameModeAddon;
|
||||
import world.bentobox.bentobox.api.localization.TextVariables;
|
||||
import world.bentobox.bentobox.api.user.User;
|
||||
import world.bentobox.bentobox.database.json.BentoboxTypeAdapterFactory;
|
||||
import world.bentobox.bentobox.database.json.adapters.TagTypeAdapterFactory;
|
||||
import world.bentobox.bentobox.database.objects.DataObject;
|
||||
import world.bentobox.bentobox.util.ItemParser;
|
||||
import world.bentobox.bentobox.util.Util;
|
||||
@ -1147,6 +1148,7 @@ public class ChallengesImportManager
|
||||
GsonBuilder builder = new GsonBuilder().excludeFieldsWithoutExposeAnnotation().enableComplexMapKeySerialization();
|
||||
// Register adapters
|
||||
builder.registerTypeAdapterFactory(new BentoboxTypeAdapterFactory(addon.getPlugin()));
|
||||
builder.registerTypeAdapterFactory(new TagTypeAdapterFactory());
|
||||
// Keep null in the database
|
||||
builder.serializeNulls();
|
||||
// Allow characters like < or > without escaping them
|
||||
|
Loading…
Reference in New Issue
Block a user