testserver/CraftBukkit-Patches/0076-Disable-Connected-Chec...

23 lines
1.1 KiB
Diff
Raw Normal View History

2014-06-22 09:25:10 +00:00
From 95232a545704431d1f98365587f57c2b51f0cd2b Mon Sep 17 00:00:00 2001
2014-04-12 04:18:37 +00:00
From: md_5 <git@md-5.net>
Date: Mon, 23 Dec 2013 15:57:57 +1100
Subject: [PATCH] Disable Connected Check on setScoreboard
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
2014-06-22 09:25:10 +00:00
index 82bd22f..1c4f3ae 100644
2014-04-12 04:18:37 +00:00
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
@@ -1225,7 +1225,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
throw new IllegalStateException("Cannot set scoreboard yet");
}
if (playerConnection.isDisconnected()) {
- throw new IllegalStateException("Cannot set scoreboard for invalid CraftPlayer");
+ // throw new IllegalStateException("Cannot set scoreboard for invalid CraftPlayer"); // Spigot - remove this as Mojang's semi asynchronous Netty implementation can lead to races
}
this.server.getScoreboardManager().setPlayerBoard(this, scoreboard);
--
2014-04-18 23:15:23 +00:00
1.9.1
2014-04-12 04:18:37 +00:00