Fix compile of activation range, oops
This commit is contained in:
parent
0e14ff9789
commit
c39bee77cc
1 changed files with 17 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
From b1d615dc4ee4ae82b71fa658ec342cddaba37bd1 Mon Sep 17 00:00:00 2001
|
From d55a99d4957f228f5a5a19e6fd3b4772d034af38 Mon Sep 17 00:00:00 2001
|
||||||
From: md_5 <git@md-5.net>
|
From: md_5 <git@md-5.net>
|
||||||
Date: Fri, 20 Feb 2015 21:33:36 +1100
|
Date: Fri, 20 Feb 2015 21:33:36 +1100
|
||||||
Subject: [PATCH] Use Standard List for EntitySlices.
|
Subject: [PATCH] Use Standard List for EntitySlices.
|
||||||
|
@ -58,6 +58,22 @@ index c50ab45..e9cd4d4 100644
|
||||||
return this.entitySlices;
|
return this.entitySlices;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
diff --git a/src/main/java/org/spigotmc/ActivationRange.java b/src/main/java/org/spigotmc/ActivationRange.java
|
||||||
|
index d3f4af1..c5ff1be 100644
|
||||||
|
--- a/src/main/java/org/spigotmc/ActivationRange.java
|
||||||
|
+++ b/src/main/java/org/spigotmc/ActivationRange.java
|
||||||
|
@@ -141,9 +141,9 @@ public class ActivationRange
|
||||||
|
*/
|
||||||
|
private static void activateChunkEntities(Chunk chunk)
|
||||||
|
{
|
||||||
|
- for ( EntitySlice slice : chunk.entitySlices )
|
||||||
|
+ for ( List<Entity> slice : chunk.entitySlices )
|
||||||
|
{
|
||||||
|
- for ( Entity entity : (Set<Entity>) slice )
|
||||||
|
+ for ( Entity entity : slice )
|
||||||
|
{
|
||||||
|
if ( MinecraftServer.currentTick > entity.activatedTick )
|
||||||
|
{
|
||||||
--
|
--
|
||||||
2.1.0
|
2.1.0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue