Don't crash if fields are null in ChunkDeleter (#1874)

Fixes #1873
This commit is contained in:
Octavia Togami 2021-08-21 20:27:25 -07:00 committed by GitHub
parent c5a4450373
commit ed28089628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ public final class ChunkDeleter {
);
private static final Gson chunkDeleterGson = new GsonBuilder()
.registerTypeAdapter(BlockVector2.class, new BlockVector2Adapter())
.registerTypeAdapter(BlockVector2.class, new BlockVector2Adapter().nullSafe())
.setPrettyPrinting()
.create();