Skip to content
This repository was archived by the owner on Dec 29, 2023. It is now read-only.

Commit ef3557c

Browse files
committed
[Paper-0161] Disable Vanilla Chunk GC by Aikar
1 parent 98d0604 commit ef3557c

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Titanium implements patches from other engines as well. **All credits go to the
7777
[Paper-0121] Reduce IO ops opening a new region
7878
[Paper-0127] Do not load chunks for pathfinding by Aikar
7979
[Paper-0144] Improve Minecraft Hopper Performance
80+
[Paper-0161] Disable Vanilla Chunk GC by Aikar
8081
[Paper-0168] Disable ticking of snow blocks
8182
[Paper-0173] Optimize World.isLoaded(BlockPosition)
8283
[Paper-0180] Server Tick Events
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
From e648b550072328a04b3ffa020e36a8fe25124296 Mon Sep 17 00:00:00 2001
2+
From: Aikar <[email protected]>
3+
Date: Mon, 26 Sep 2016 01:51:30 -0400
4+
Subject: [PATCH] Implement [Paper-0161] Disable Vanilla Chunk GC by Aikar
5+
6+
Bukkit has its own system for this.
7+
8+
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java
9+
index 778800b5a..b42f7cbdc 100644
10+
--- a/src/main/java/net/minecraft/server/WorldServer.java
11+
+++ b/src/main/java/net/minecraft/server/WorldServer.java
12+
@@ -1000,7 +1000,8 @@ public class WorldServer extends World implements IAsyncTaskHandler {
13+
14+
this.chunkProvider.saveChunks(flag, iprogressupdate);
15+
// CraftBukkit - ArrayList -> Collection
16+
- Collection arraylist = this.chunkProviderServer.a();
17+
+ // Paper start
18+
+ /* Collection arraylist = this.chunkProviderServer.a();
19+
Iterator iterator = arraylist.iterator();
20+
21+
while (iterator.hasNext()) {
22+
@@ -1009,8 +1010,8 @@ public class WorldServer extends World implements IAsyncTaskHandler {
23+
if (chunk != null && !this.manager.a(chunk.locX, chunk.locZ)) {
24+
this.chunkProviderServer.queueUnload(chunk.locX, chunk.locZ);
25+
}
26+
- }
27+
-
28+
+ } */
29+
+ // Paper end
30+
}
31+
}
32+
33+
--
34+
2.36.0.windows.1
35+

0 commit comments

Comments
 (0)