-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address POI memory leak and Generate Command issues (#937)
Co-authored-by: embeddedt <[email protected]>
- Loading branch information
1 parent
abc54b7
commit 2bced72
Showing
5 changed files
with
77 additions
and
5 deletions.
There are no files selected for viewing
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
15 changes: 15 additions & 0 deletions
15
patches/net/minecraft/world/level/chunk/storage/SectionStorage.java.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,15 @@ | ||
--- a/net/minecraft/world/level/chunk/storage/SectionStorage.java | ||
+++ b/net/minecraft/world/level/chunk/storage/SectionStorage.java | ||
@@ -231,4 +_,12 @@ | ||
public void close() throws IOException { | ||
this.simpleRegionStorage.close(); | ||
} | ||
+ | ||
+ /** | ||
+ * Neo: Removes the data for the given chunk position. | ||
+ * See PR #937 | ||
+ */ | ||
+ public void remove(long sectionPosAsLong) { | ||
+ this.storage.remove(sectionPosAsLong); | ||
+ } | ||
} |
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
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
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