mirror of
https://hub.spigotmc.org/stash/scm/spigot/spigot.git
synced 2025-09-18 21:33:01 +00:00
21 lines
896 B
Diff
21 lines
896 B
Diff
From 9a887ac2c571535ce031967a02569b14046a54c4 Mon Sep 17 00:00:00 2001
|
|
From: BlackHole <black-hole@live.com>
|
|
Date: Fri, 22 Apr 2016 16:43:47 +0200
|
|
Subject: [PATCH] Don't tick blocks if neighbor chunks aren't loaded
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java
|
|
index b8fed305..7f65b6da 100644
|
|
--- a/src/main/java/net/minecraft/server/WorldServer.java
|
|
+++ b/src/main/java/net/minecraft/server/WorldServer.java
|
|
@@ -485,6 +485,7 @@ public class WorldServer extends World implements IAsyncTaskHandler {
|
|
chunk.x();
|
|
this.methodProfiler.c("tickChunk");
|
|
chunk.d(false);
|
|
+ if ( !chunk.areNeighborsLoaded( 1 ) ) continue; // Spigot
|
|
this.methodProfiler.c("thunder");
|
|
int l;
|
|
BlockPosition blockposition;
|
|
--
|
|
2.17.1
|
|
|