2017-11-17 10:24:35 +11:00
|
|
|
From df832cc258e3fa0c14218752d26d2b0fa0c0adea Mon Sep 17 00:00:00 2001
|
2014-11-26 08:27:08 +11:00
|
|
|
From: Thinkofdeath <thethinkofdeath@gmail.com>
|
|
|
|
Date: Tue, 14 Jan 2014 20:11:25 +0000
|
|
|
|
Subject: [PATCH] Fix ConcurrentModificationException while being idle kicked
|
|
|
|
in a vehicle
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
2017-09-18 20:00:00 +10:00
|
|
|
index 35756cf63..e0e78cc2c 100644
|
2014-11-26 08:27:08 +11:00
|
|
|
--- a/src/main/java/net/minecraft/server/World.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/World.java
|
2016-03-01 08:33:06 +11:00
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-package net.minecraft.server;
|
|
|
|
+ package net.minecraft.server;
|
|
|
|
|
|
|
|
import com.google.common.base.Function;
|
2017-05-14 12:00:00 +10:00
|
|
|
import com.google.common.base.MoreObjects;
|
2017-08-03 23:00:00 +10:00
|
|
|
@@ -1123,6 +1123,7 @@ public abstract class World implements IBlockAccess {
|
2014-11-26 08:27:08 +11:00
|
|
|
this.everyoneSleeping();
|
|
|
|
}
|
|
|
|
|
|
|
|
+ if (!guardEntityList) { // Spigot - It will get removed after the tick if we are ticking
|
2016-11-17 12:41:12 +11:00
|
|
|
int i = entity.ab;
|
|
|
|
int j = entity.ad;
|
2014-11-26 08:27:08 +11:00
|
|
|
|
2017-08-03 23:00:00 +10:00
|
|
|
@@ -1139,6 +1140,7 @@ public abstract class World implements IBlockAccess {
|
2014-11-26 08:27:08 +11:00
|
|
|
this.entityList.remove(index);
|
|
|
|
}
|
|
|
|
// CraftBukkit end
|
|
|
|
+ } // Spigot
|
2016-03-01 08:33:06 +11:00
|
|
|
this.c(entity);
|
2014-11-26 08:27:08 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
--
|
2017-11-17 10:24:35 +11:00
|
|
|
2.14.1
|
2014-11-26 08:27:08 +11:00
|
|
|
|