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

Commit 3ccc16d

Browse files
committed
Implement [FlamePaper-0032] Don't load chunks for chests
1 parent dc4d782 commit 3ccc16d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ Titanium implements patches from other engines as well. **All credits go to the
118118
[FlamePaper-0017] Pearl through blocks
119119
[FlamePaper-0024] Disable Unloaded Chunk Movement
120120
[FlamePaper-0030] Adaptive chunk GC
121+
[FlamePaper-0032] Dont load chunks for chests
121122
[FlamePaper-0033] Dont check occluding hoppers by LinsaFTW
122123
[FlamePaper-0034] Hopper item lookup optimization by LinsaFTW
123124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From 68640489e234bf5f4c18bf12b752047d6f95a602 Mon Sep 17 00:00:00 2001
2+
From: Peridot <[email protected]>
3+
Date: Wed, 14 Sep 2022 21:06:28 +0200
4+
Subject: [PATCH] Implement [FlamePaper-0032] Dont load chunks for chests
5+
6+
7+
diff --git a/src/main/java/net/minecraft/server/BlockChest.java b/src/main/java/net/minecraft/server/BlockChest.java
8+
index f5f65dd92..2cbe77dfc 100644
9+
--- a/src/main/java/net/minecraft/server/BlockChest.java
10+
+++ b/src/main/java/net/minecraft/server/BlockChest.java
11+
@@ -50,6 +50,11 @@ public class BlockChest extends BlockContainer {
12+
while (iterator.hasNext()) {
13+
EnumDirection enumdirection = (EnumDirection) iterator.next();
14+
BlockPosition blockposition1 = blockposition.shift(enumdirection);
15+
+ // FlamePaper start - Dont load chunks for chests
16+
+ if (!world.isLoaded(blockposition1)) {
17+
+ continue;
18+
+ }
19+
+ // Titanium end
20+
IBlockData iblockdata1 = world.getType(blockposition1);
21+
22+
if (iblockdata1.getBlock() == this) {
23+
--
24+
2.36.0.windows.1
25+

0 commit comments

Comments
 (0)