-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extra: Reset dirty flag when loading maps from the disk
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...er/minecraft-patches/features/0112-Reset-dirty-flag-when-loading-maps-from-the-disk.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Taiyou06 <[email protected]> | ||
Date: Fri, 7 Feb 2025 23:01:57 +0100 | ||
Subject: [PATCH] Reset-dirty-flag-when-loading-maps-from-the-disk | ||
|
||
|
||
diff --git a/net/minecraft/world/level/saveddata/maps/MapItemSavedData.java b/net/minecraft/world/level/saveddata/maps/MapItemSavedData.java | ||
index 3a8c5a252ea5986b2366fa774ea1754494af1d59..4cef20a063ad6d9bee9ec4294b506f03029c2e8c 100644 | ||
--- a/net/minecraft/world/level/saveddata/maps/MapItemSavedData.java | ||
+++ b/net/minecraft/world/level/saveddata/maps/MapItemSavedData.java | ||
@@ -198,6 +198,7 @@ public class MapItemSavedData extends SavedData { | ||
} | ||
} | ||
|
||
+ mapItemSavedData.setDirty(false); // SparklyPaper - reset dirty flag when loading maps from the disk (context for updates: this modification is at the end of the map "load" function) | ||
return mapItemSavedData; | ||
} | ||
|