From 4995ec5b581b8a85c0feed94ddaf0b2a5388e67a Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Wed, 17 Jul 2024 11:46:55 -0700 Subject: [PATCH] Log throwable when failing to save chunk/poi/entity data --- .../patches/chunk_system/scheduling/NewChunkHolder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/NewChunkHolder.java b/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/NewChunkHolder.java index ed0edee9..fcfc8493 100644 --- a/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/NewChunkHolder.java +++ b/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/NewChunkHolder.java @@ -1813,7 +1813,7 @@ private boolean saveChunk(final ChunkAccess chunk, final boolean unloading) { } chunk.setUnsaved(false); } catch (final Throwable thr) { - LOGGER.error("Failed to save chunk data (" + this.chunkX + "," + this.chunkZ + ") in world '" + WorldUtil.getWorldName(this.world) + "'"); + LOGGER.error("Failed to save chunk data (" + this.chunkX + "," + this.chunkZ + ") in world '" + WorldUtil.getWorldName(this.world) + "'", thr); if (unloading && !completing) { this.completeAsyncUnloadDataSave(RegionFileIOThread.RegionFileType.CHUNK_DATA, null); } @@ -1859,7 +1859,7 @@ private boolean saveEntities(final ChunkEntitySlices entities, final boolean unl this.lastEntityUnload = save; } } catch (final Throwable thr) { - LOGGER.error("Failed to save entity data (" + this.chunkX + "," + this.chunkZ + ") in world '" + WorldUtil.getWorldName(this.world) + "'"); + LOGGER.error("Failed to save entity data (" + this.chunkX + "," + this.chunkZ + ") in world '" + WorldUtil.getWorldName(this.world) + "'", thr); } return true; @@ -1883,7 +1883,7 @@ private boolean savePOI(final PoiChunk poi, final boolean unloading) { this.poiDataUnload.completable().complete(save); } } catch (final Throwable thr) { - LOGGER.error("Failed to save poi data (" + this.chunkX + "," + this.chunkZ + ") in world '" + WorldUtil.getWorldName(this.world) + "'"); + LOGGER.error("Failed to save poi data (" + this.chunkX + "," + this.chunkZ + ") in world '" + WorldUtil.getWorldName(this.world) + "'", thr); } return true;