2016-02-20 21:34:29 -06:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Joseph Hirschfeld <joe@ibj.io>
|
2016-02-29 17:09:49 -06:00
|
|
|
Date: Thu, 3 Mar 2016 02:39:54 -0600
|
2016-02-20 21:34:29 -06:00
|
|
|
Subject: [PATCH] Change implementation of (tile)entity removal list
|
|
|
|
|
2019-04-05 23:08:45 -04:00
|
|
|
use sets for faster removal
|
2016-02-20 21:34:29 -06:00
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
2020-01-28 19:43:57 +00:00
|
|
|
index ef00928466..caead09a64 100644
|
2016-02-20 21:34:29 -06:00
|
|
|
--- a/src/main/java/net/minecraft/server/World.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/World.java
|
2019-12-11 00:56:03 +00:00
|
|
|
@@ -0,0 +0,0 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
2016-03-25 02:50:56 -05:00
|
|
|
public final List<TileEntity> tileEntityList = Lists.newArrayList();
|
2016-02-29 17:09:49 -06:00
|
|
|
public final List<TileEntity> tileEntityListTick = Lists.newArrayList();
|
2019-04-26 02:24:00 +01:00
|
|
|
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-21 18:02:07 -08:00
|
|
|
public final Thread serverThread;
|
2019-12-11 00:56:03 +00:00
|
|
|
private int c;
|
|
|
|
protected int i = (new Random()).nextInt();
|
2016-02-20 21:34:29 -06:00
|
|
|
--
|