diff options
author | Spottedleaf <[email protected]> | 2024-07-17 11:48:24 -0700 |
---|---|---|
committer | Spottedleaf <[email protected]> | 2024-07-17 11:48:24 -0700 |
commit | 2df5bba16adf61cf048b12908986aef944d11e75 (patch) | |
tree | 8168200e4a7058453c6fd30868caa5b984f69078 | |
parent | b653276565ed37042caf47fb7ea4e7a36899b5a3 (diff) | |
download | Paper-2df5bba16adf61cf048b12908986aef944d11e75.tar.gz Paper-2df5bba16adf61cf048b12908986aef944d11e75.zip |
Log throwable when failing to save chunk/poi/entity data
-rw-r--r-- | patches/server/0988-Moonrise-optimisation-patches.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/server/0988-Moonrise-optimisation-patches.patch b/patches/server/0988-Moonrise-optimisation-patches.patch index b3cb82cd6e..627765ce88 100644 --- a/patches/server/0988-Moonrise-optimisation-patches.patch +++ b/patches/server/0988-Moonrise-optimisation-patches.patch @@ -8489,7 +8489,7 @@ index 0000000000000000000000000000000000000000..b1456c1ddf24b625c6caf41a9379d8c0 +} 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 new file mode 100644 -index 0000000000000000000000000000000000000000..1dfddea4fd7e89fb6fd9fa49f7ab5e6f48e6ef3c +index 0000000000000000000000000000000000000000..45eda96fd8a1acb87dbb69ce5495fec7e451416f --- /dev/null +++ b/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/NewChunkHolder.java @@ -0,0 +1,2035 @@ @@ -10308,7 +10308,7 @@ index 0000000000000000000000000000000000000000..1dfddea4fd7e89fb6fd9fa49f7ab5e6f + } + 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); + } @@ -10354,7 +10354,7 @@ index 0000000000000000000000000000000000000000..1dfddea4fd7e89fb6fd9fa49f7ab5e6f + 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; @@ -10378,7 +10378,7 @@ index 0000000000000000000000000000000000000000..1dfddea4fd7e89fb6fd9fa49f7ab5e6f + 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; |