2016-02-21 04:34:29 +01:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Joseph Hirschfeld <joe@ibj.io>
|
2016-03-01 00:09:49 +01:00
|
|
|
Date: Thu, 3 Mar 2016 02:39:54 -0600
|
2016-02-21 04:34:29 +01:00
|
|
|
Subject: [PATCH] Change implementation of (tile)entity removal list
|
|
|
|
|
2019-04-06 05:08:45 +02:00
|
|
|
use sets for faster removal
|
2016-02-21 04:34:29 +01:00
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
2019-10-20 11:03:39 +02:00
|
|
|
index da049cefe4..76704abda1 100644
|
2016-02-21 04:34:29 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/World.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/World.java
|
2019-04-26 03:24:00 +02:00
|
|
|
@@ -0,0 +0,0 @@ public abstract class World implements IIBlockAccess, GeneratorAccess, AutoClose
|
2016-03-25 08:50:56 +01:00
|
|
|
public final List<TileEntity> tileEntityList = Lists.newArrayList();
|
2016-03-01 00:09:49 +01:00
|
|
|
public final List<TileEntity> tileEntityListTick = Lists.newArrayList();
|
2019-04-26 03:24:00 +02:00
|
|
|
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-10-20 11:03:39 +02:00
|
|
|
final Thread serverThread; // CraftBukkit - package private
|
2019-07-20 06:01:24 +02:00
|
|
|
private int u;
|
2016-02-21 04:34:29 +01:00
|
|
|
--
|