mirror of
https://hub.spigotmc.org/stash/scm/spigot/spigot.git
synced 2025-09-18 21:33:01 +00:00
21 lines
898 B
Diff
21 lines
898 B
Diff
From 8395e2765aea07987468b678829b24c8f9564dcb 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 7f5a27bba..74a61f300 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.19.1
|
|
|