mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-11-22 18:46:27 +01:00
Fix chunks sometimes not loading
I had players on my server report that they don't see the chunks loading. This should fix it.
This commit is contained in:
parent
d5b65a9f7e
commit
97de0c0a99
@ -53,7 +53,6 @@ # Patches
|
||||
| server | Entity lifespan | William Blake Galbreath | |
|
||||
| server | Fix 'outdated server' showing in ping before server fully | William Blake Galbreath | |
|
||||
| server | Fix Bukkit.createInventory() with type LECTERN | willies952002 | |
|
||||
| server | Fix MC-197616 | Ivan Pekov | |
|
||||
| server | Fix exp drop of zombie pigmen (MC-56653) | Phoenix616 | |
|
||||
| server | Fix lead fall dmg config | tr7zw | |
|
||||
| server | Fix the dead lagging the server | William Blake Galbreath | |
|
||||
@ -102,7 +101,6 @@ # Patches
|
||||
| server | Swaps the predicate order of collision | ㄗㄠˋ ㄑㄧˊ | |
|
||||
| server | Tulips change fox type | William Blake Galbreath | |
|
||||
| server | Tweak Explosions | Aikar | |
|
||||
| server | Update distance map if necessary | Ivan Pekov | |
|
||||
| server | Use arrow despawn rate for all projectiles | William Blake Galbreath | |
|
||||
| server | Use block distance in portal search radius | Patrick Hemmer | |
|
||||
| server | Use offline uuids if we need to | Ivan Pekov | |
|
||||
|
@ -1,18 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Ivan Pekov <ivan@mrivanplays.com>
|
||||
Date: Tue, 18 Aug 2020 07:53:25 +0300
|
||||
Subject: [PATCH] Fix MC-197616
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/PacketPlayOutMapChunk.java b/src/main/java/net/minecraft/server/PacketPlayOutMapChunk.java
|
||||
index 72fdbf1534b65284ac8020dcc15fe1512766d087..e4f3157265df8208e6ef4ecf630e073f69cd9a38 100644
|
||||
--- a/src/main/java/net/minecraft/server/PacketPlayOutMapChunk.java
|
||||
+++ b/src/main/java/net/minecraft/server/PacketPlayOutMapChunk.java
|
||||
@@ -175,6 +175,7 @@ public class PacketPlayOutMapChunk implements Packet<PacketListenerPlayOut> {
|
||||
packetdataserializer.d(this.c);
|
||||
packetdataserializer.a(this.d);
|
||||
if (this.e != null) {
|
||||
+ for (int i = 0; i < e.length; i++) { if (e[i] < 0) e[i] = 0; } // Yatopia
|
||||
packetdataserializer.a(this.e);
|
||||
}
|
||||
|
@ -1,22 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Ivan Pekov <ivan@mrivanplays.com>
|
||||
Date: Tue, 18 Aug 2020 11:00:26 +0300
|
||||
Subject: [PATCH] Update distance map if necessary
|
||||
|
||||
I've seen people report to paper bad timings with the distance map lagging whilst
|
||||
they have animals & monsters disabled in those specific worlds. This makes updating
|
||||
the distance map only if animals or monsters are allowed to spawn in that world.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/ChunkProviderServer.java b/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
||||
index 5af513cb052382c34e157110265f80a1a2efef15..d50cb0a8b14ca0a57fcc1e6ee33eb7a2b67fbf6d 100644
|
||||
--- a/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
||||
+++ b/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
||||
@@ -990,7 +990,7 @@ public class ChunkProviderServer extends IChunkProvider {
|
||||
int l = this.chunkMapDistance.b();
|
||||
// Paper start - per player mob spawning
|
||||
SpawnerCreature.d spawnercreature_d; // moved down
|
||||
- if (this.playerChunkMap.playerMobDistanceMap != null) {
|
||||
+ if ((allowAnimals || allowMonsters) && this.playerChunkMap.playerMobDistanceMap != null) { // Yatopia
|
||||
// update distance map
|
||||
this.world.timings.playerMobDistanceMapUpdate.startTiming();
|
||||
this.playerChunkMap.playerMobDistanceMap.update(this.world.players, this.playerChunkMap.viewDistance);
|
Loading…
Reference in New Issue
Block a user