geforkt von Mirrors/Paper
19 Zeilen
908 B
Diff
19 Zeilen
908 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Mariell Hoversholm <proximyst@proximyst.com>
|
|
Date: Sun, 27 Sep 2020 16:25:24 +0200
|
|
Subject: [PATCH] Don't mark dirty in invalid locations (SPIGOT-6086)
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/level/ChunkHolder.java b/src/main/java/net/minecraft/server/level/ChunkHolder.java
|
|
index 6782e2b100b1619016c637a9e71f9e880ff974e1..41333234cdda8127a239f591d8d2cd304e341852 100644
|
|
--- a/src/main/java/net/minecraft/server/level/ChunkHolder.java
|
|
+++ b/src/main/java/net/minecraft/server/level/ChunkHolder.java
|
|
@@ -227,6 +227,7 @@ public class ChunkHolder {
|
|
}
|
|
|
|
public void blockChanged(BlockPos pos) {
|
|
+ if (!pos.isValidLocation(levelHeightAccessor)) return; // Paper - SPIGOT-6086 for all invalid locations; avoid acquiring locks
|
|
LevelChunk chunk = this.getTickingChunk();
|
|
|
|
if (chunk != null) {
|