mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-20 15:29:33 +00:00
Start updating to 1.21.5
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
--- a/net/minecraft/server/level/ChunkMap.java
|
||||
+++ b/net/minecraft/server/level/ChunkMap.java
|
||||
@@ -129,7 +_,7 @@
|
||||
public final AtomicInteger tickingGenerated = new AtomicInteger(); // Paper - public
|
||||
@@ -138,7 +_,7 @@
|
||||
private final AtomicInteger tickingGenerated = new AtomicInteger();
|
||||
private final String storageName;
|
||||
private final PlayerMap playerMap = new PlayerMap();
|
||||
- public final Int2ObjectMap<ChunkMap.TrackedEntity> entityMap = new Int2ObjectOpenHashMap<>();
|
||||
+ public final Int2ObjectMap<ChunkMap.TrackedEntity> entityMap = new me.samsuik.sakura.utils.collections.TrackedEntityChunkMap(); // Sakura - optimised tracked entity map
|
||||
private final Long2ByteMap chunkTypeCache = new Long2ByteOpenHashMap();
|
||||
// Paper - rewrite chunk system
|
||||
public int serverViewDistance;
|
||||
@@ -1217,7 +_,10 @@
|
||||
private final Long2LongMap nextChunkSaveTime = new Long2LongOpenHashMap();
|
||||
private final LongSet chunksToEagerlySave = new LongLinkedOpenHashSet();
|
||||
@@ -1420,7 +_,10 @@
|
||||
double vec3_dz = player.getZ() - this.entity.getZ();
|
||||
// Paper end - remove allocation of Vec3D here
|
||||
int playerViewDistance = ChunkMap.this.getPlayerViewDistance(player);
|
||||
|
||||
Reference in New Issue
Block a user