3
0
This commit is contained in:
Prototik
2015-10-23 20:04:48 +07:00
parent d3c359b26d
commit 30960fd721
3 changed files with 30 additions and 22 deletions

View File

@ -425,16 +425,19 @@
{
if (this.updateEntityTick++ >= 1200)
{
@@ -498,7 +681,7 @@
@@ -496,9 +679,9 @@
public boolean tickUpdates(boolean p_72955_1_)
{
int i = this.pendingTickListEntriesTreeSet.size();
- int i = this.pendingTickListEntriesTreeSet.size();
+ int i = this.pendingTickListEntriesHashSet.size();
- if (i != this.pendingTickListEntriesHashSet.size())
+ if (i != this.pendingTickListEntriesHashSet.size() && false) // KCauldron
+ if (false) // KCauldron
{
throw new IllegalStateException("TickNextTick list out of synch");
}
@@ -506,7 +689,16 @@
@@ -506,22 +689,31 @@
{
if (i > 1000)
{
@ -452,7 +455,16 @@
}
this.theProfiler.startSection("cleaning");
@@ -521,7 +713,7 @@
NextTickListEntry nextticklistentry;
- for (int j = 0; j < i; ++j)
+ for (Iterator iter = pendingTickListEntriesHashSet.iterator(); i >= 0 && iter.hasNext(); i--)
{
- nextticklistentry = (NextTickListEntry)this.pendingTickListEntriesTreeSet.first();
+ nextticklistentry = (NextTickListEntry) iter.next();
if (!p_72955_1_ && nextticklistentry.scheduledTime > this.worldInfo.getWorldTotalTime())
{
break;
}