2020-07-17 18:05:50 +02:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2020-08-07 02:59:57 +02:00
From: tr7zw <tr7zw@live.de>
2020-08-05 15:21:25 +02:00
Date: Wed, 5 Aug 2020 08:08:44 -0500
2020-08-20 11:59:08 +02:00
Subject: [PATCH] Optimize TileEntity load/unload
2020-07-17 01:10:44 +02:00
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
2020-09-21 14:55:01 +02:00
index bbbbeaafe8d699d59b04fe44a09b6b5fd9f1fac5..9cbd38663c5e1e8d096f3e4a5383ed9ddbf691fe 100644
2020-07-17 01:10:44 +02:00
--- a/src/main/java/net/minecraft/server/World.java
+++ b/src/main/java/net/minecraft/server/World.java
2020-09-13 09:00:43 +02:00
@@ -42,9 +42,9 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
2020-08-13 17:53:32 +02:00
public static final ResourceKey<World> THE_END = ResourceKey.a(IRegistry.L, new MinecraftKey("the_end"));
2020-07-17 01:10:44 +02:00
private static final EnumDirection[] a = EnumDirection.values();
//public final List<TileEntity> tileEntityList = Lists.newArrayList(); // Paper - remove unused list
- public final List<TileEntity> tileEntityListTick = Lists.newArrayList();
- protected final List<TileEntity> tileEntityListPending = Lists.newArrayList();
2020-08-20 11:59:08 +02:00
- protected final java.util.Set<TileEntity> tileEntityListUnload = com.google.common.collect.Sets.newHashSet();
2020-08-11 17:38:17 +02:00
+ public final List<TileEntity> tileEntityListTick = me.jellysquid.mods.lithium.common.util.collections.HashedList.wrapper(Lists.newArrayList()); // Yatopia
+ protected final List<TileEntity> tileEntityListPending = me.jellysquid.mods.lithium.common.util.collections.HashedList.wrapper(Lists.newArrayList()); // Yatopia
2020-08-20 11:59:08 +02:00
+ protected final List<TileEntity> tileEntityListUnload = me.jellysquid.mods.lithium.common.util.collections.HashedList.wrapper(Lists.newArrayList()); // Yatopia
2020-07-17 01:10:44 +02:00
public final Thread serverThread;
private final boolean debugWorld;
2020-08-20 11:59:08 +02:00
private int d;