2019-05-27 09:13:41 +00:00
|
|
|
From 5714232edbc1210d08b4aa3ac09f10d5545932ca 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
|
2019-05-27 09:13:41 +00:00
|
|
|
index 6d900669d..72435a2c0 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
|
|
|
|
@@ -40,7 +40,7 @@ public abstract class World implements IIBlockAccess, GeneratorAccess, AutoClose
|
|
|
|
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();
|
|
|
|
+ protected final java.util.Set<TileEntity> tileEntityListUnload = com.google.common.collect.Sets.newHashSet(); // Paper
|
|
|
|
private final long b = 16777215L;
|
2019-05-14 02:20:58 +00:00
|
|
|
private final Thread serverThread;
|
2019-04-26 01:24:00 +00:00
|
|
|
private int d;
|
|
|
|
--
|
|
|
|
2.21.0
|
|
|
|
|