2020-05-02 00:03:47 +02:00
|
|
|
From c05b5893e43278ce2f8ecfec657f6b31e98d7796 Mon Sep 17 00:00:00 2001
|
2019-04-26 03:24:00 +02: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
|
2020-05-02 00:03:47 +02:00
|
|
|
index 4d849719f4..6e8ac186c9 100644
|
2019-04-26 03:24:00 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/World.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/World.java
|
2020-01-28 20:43:57 +01:00
|
|
|
@@ -36,7 +36,7 @@ public abstract class World implements GeneratorAccess, AutoCloseable {
|
2019-04-26 03:24:00 +02: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 01:56:03 +01:00
|
|
|
+ protected final java.util.Set<TileEntity> tileEntityListUnload = com.google.common.collect.Sets.newHashSet();
|
2020-01-22 03:02:07 +01:00
|
|
|
public final Thread serverThread;
|
2019-12-11 01:56:03 +01:00
|
|
|
private int c;
|
|
|
|
protected int i = (new Random()).nextInt();
|
2019-04-26 03:24:00 +02:00
|
|
|
--
|
2020-05-02 00:03:47 +02:00
|
|
|
2.26.2
|
2019-04-26 03:24:00 +02:00
|
|
|
|