@@ -1,11 +1,11 @@
|
||||
From ab3165faa242ad961f1cd19308a9ef51c7cc8ac9 Mon Sep 17 00:00:00 2001
|
||||
From 7fb383919a5aa0e3be32033ba0be45553a590393 Mon Sep 17 00:00:00 2001
|
||||
From: Ammar Askar <ammar@ammaraskar.com>
|
||||
Date: Sat, 3 Aug 2013 21:42:00 +0500
|
||||
Subject: [PATCH] Guard entity list
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
||||
index 06759cd..cb21133 100644
|
||||
index 690f768..e3ff733 100644
|
||||
--- a/src/main/java/net/minecraft/server/World.java
|
||||
+++ b/src/main/java/net/minecraft/server/World.java
|
||||
@@ -29,7 +29,25 @@ import org.bukkit.event.weather.ThunderChangeEvent;
|
||||
@@ -43,7 +43,7 @@ index 06759cd..cb21133 100644
|
||||
protected final gnu.trove.map.hash.TLongShortHashMap chunkTickList;
|
||||
protected float growthOdds = 100;
|
||||
protected float modifiedOdds = 100;
|
||||
@@ -1285,6 +1304,7 @@ public abstract class World implements IBlockAccess {
|
||||
@@ -1286,6 +1305,7 @@ public abstract class World implements IBlockAccess {
|
||||
|
||||
org.spigotmc.ActivationRange.activateEntities(this); // Spigot
|
||||
timings.entityTick.startTiming(); // Spigot
|
||||
@@ -51,7 +51,7 @@ index 06759cd..cb21133 100644
|
||||
for (i = 0; i < this.entityList.size(); ++i) {
|
||||
entity = (Entity) this.entityList.get(i);
|
||||
|
||||
@@ -1332,12 +1352,15 @@ public abstract class World implements IBlockAccess {
|
||||
@@ -1333,12 +1353,15 @@ public abstract class World implements IBlockAccess {
|
||||
this.getChunkAt(j, k).b(entity);
|
||||
}
|
||||
|
||||
@@ -68,5 +68,5 @@ index 06759cd..cb21133 100644
|
||||
timings.entityTick.stopTiming(); // Spigot
|
||||
this.methodProfiler.c("tileEntities");
|
||||
--
|
||||
1.8.1.2
|
||||
1.8.3.2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user