2020-05-06 09:48:49 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2019-04-26 01:24:00 +00:00
|
|
|
From: Joseph Hirschfeld <joe@ibj.io>
|
|
|
|
Date: Thu, 3 Mar 2016 02:39:54 -0600
|
|
|
|
Subject: [PATCH] Change implementation of (tile)entity removal list
|
|
|
|
|
|
|
|
use sets for faster removal
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
2021-02-21 19:45:33 +00:00
|
|
|
index 564e252a366ed5df602ea4d608f482c80a187606..895436e36e6ef6f78dfd42e3ef3a0132506663f2 100644
|
2019-04-26 01:24:00 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/World.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/World.java
|
2020-06-25 09:27:25 +00:00
|
|
|
@@ -37,7 +37,7 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
2019-04-26 01:24:00 +00:00
|
|
|
public final List<TileEntity> tileEntityList = Lists.newArrayList();
|
|
|
|
public final List<TileEntity> tileEntityListTick = Lists.newArrayList();
|
|
|
|
protected final List<TileEntity> tileEntityListPending = Lists.newArrayList();
|
|
|
|
- protected final List<TileEntity> tileEntityListUnload = Lists.newArrayList();
|
2019-12-11 00:56:03 +00:00
|
|
|
+ protected final java.util.Set<TileEntity> tileEntityListUnload = com.google.common.collect.Sets.newHashSet();
|
2020-01-22 02:02:07 +00:00
|
|
|
public final Thread serverThread;
|
2020-06-25 09:27:25 +00:00
|
|
|
private final boolean debugWorld;
|
|
|
|
private int d;
|