Update to Minecraft 1.8.8 (Pre-)Release.

This commit is contained in:
md_5 2015-07-27 22:19:19 +10:00
parent d27e6d0c54
commit de5c26123f
7 changed files with 22 additions and 29 deletions

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/server/ChunkRegionLoader.java --- a/net/minecraft/server/ChunkRegionLoader.java
+++ b/net/minecraft/server/ChunkRegionLoader.java +++ b/net/minecraft/server/ChunkRegionLoader.java
@@ -25,7 +25,35 @@ @@ -26,7 +26,35 @@
this.d = file; this.d = file;
} }
@ -36,7 +36,7 @@
ChunkCoordIntPair chunkcoordintpair = new ChunkCoordIntPair(i, j); ChunkCoordIntPair chunkcoordintpair = new ChunkCoordIntPair(i, j);
NBTTagCompound nbttagcompound = (NBTTagCompound) this.b.get(chunkcoordintpair); NBTTagCompound nbttagcompound = (NBTTagCompound) this.b.get(chunkcoordintpair);
@@ -42,7 +70,7 @@ @@ -43,7 +71,7 @@
return this.a(world, i, j, nbttagcompound); return this.a(world, i, j, nbttagcompound);
} }
@ -45,7 +45,7 @@
if (!nbttagcompound.hasKeyOfType("Level", 10)) { if (!nbttagcompound.hasKeyOfType("Level", 10)) {
ChunkRegionLoader.a.error("Chunk file at " + i + "," + j + " is missing level data, skipping"); ChunkRegionLoader.a.error("Chunk file at " + i + "," + j + " is missing level data, skipping");
return null; return null;
@@ -59,10 +87,28 @@ @@ -60,10 +88,28 @@
ChunkRegionLoader.a.error("Chunk file at " + i + "," + j + " is in the wrong location; relocating. (Expected " + i + ", " + j + ", got " + chunk.locX + ", " + chunk.locZ + ")"); ChunkRegionLoader.a.error("Chunk file at " + i + "," + j + " is in the wrong location; relocating. (Expected " + i + ", " + j + ", got " + chunk.locX + ", " + chunk.locZ + ")");
nbttagcompound1.setInt("xPos", i); nbttagcompound1.setInt("xPos", i);
nbttagcompound1.setInt("zPos", j); nbttagcompound1.setInt("zPos", j);
@ -75,7 +75,7 @@
} }
} }
} }
@@ -290,7 +336,26 @@ @@ -303,7 +349,26 @@
int k1 = l >> 4 & 15; int k1 = l >> 4 & 15;
int l1 = nibblearray1 != null ? nibblearray1.a(i1, j1, k1) : 0; int l1 = nibblearray1 != null ? nibblearray1.a(i1, j1, k1) : 0;
@ -103,7 +103,7 @@
} }
chunksection.a(achar); chunksection.a(achar);
@@ -308,6 +373,13 @@ @@ -321,6 +386,13 @@
chunk.a(nbttagcompound.getByteArray("Biomes")); chunk.a(nbttagcompound.getByteArray("Biomes"));
} }
@ -117,7 +117,7 @@
NBTTagList nbttaglist1 = nbttagcompound.getList("Entities", 10); NBTTagList nbttaglist1 = nbttagcompound.getList("Entities", 10);
if (nbttaglist1 != null) { if (nbttaglist1 != null) {
@@ -366,6 +438,6 @@ @@ -379,6 +451,6 @@
} }
} }

View File

@ -1,6 +1,6 @@
--- a/net/minecraft/server/CrashReport.java --- a/net/minecraft/server/CrashReport.java
+++ b/net/minecraft/server/CrashReport.java +++ b/net/minecraft/server/CrashReport.java
@@ -133,6 +133,7 @@ @@ -124,6 +124,7 @@
return this.a(); return this.a();
} }
}); });

View File

@ -93,7 +93,7 @@
+ +
thread.setDaemon(true); thread.setDaemon(true);
thread.start(); thread.start();
DedicatedServer.LOGGER.info("Starting minecraft server version 1.8.7"); DedicatedServer.LOGGER.info("Starting minecraft server version 1.8.8");
@@ -73,7 +120,7 @@ @@ -73,7 +120,7 @@
} }

View File

@ -58,7 +58,7 @@
+ // CraftBukkit end + // CraftBukkit end
+ +
if (packethandshakinginsetprotocol.b() > 47) { if (packethandshakinginsetprotocol.b() > 47) {
chatcomponenttext = new ChatComponentText("Outdated server! I\'m still on 1.8.7"); chatcomponenttext = new ChatComponentText("Outdated server! I\'m still on 1.8.8");
this.b.handle(new PacketLoginOutDisconnect(chatcomponenttext)); this.b.handle(new PacketLoginOutDisconnect(chatcomponenttext));
@@ -26,6 +71,7 @@ @@ -26,6 +71,7 @@
this.b.close(chatcomponenttext); this.b.close(chatcomponenttext);

View File

@ -16,8 +16,8 @@
+ +
public class PacketStatusListener implements PacketStatusInListener { public class PacketStatusListener implements PacketStatusInListener {
private final MinecraftServer minecraftServer; private static final IChatBaseComponent a = new ChatComponentText("Status request has been handled.");
@@ -12,11 +23,116 @@ @@ -14,17 +25,116 @@
public void a(IChatBaseComponent ichatbasecomponent) {} public void a(IChatBaseComponent ichatbasecomponent) {}
@ -29,13 +29,16 @@
+ // CraftBukkit end + // CraftBukkit end
+ +
public void a(PacketStatusInStart packetstatusinstart) { public void a(PacketStatusInStart packetstatusinstart) {
- this.networkManager.handle(new PacketStatusOutServerInfo(this.minecraftServer.aG())); - if (this.d) {
+ // this.networkManager.handle(new PacketStatusOutServerInfo(this.minecraftServer.aG())); + // this.networkManager.handle(new PacketStatusOutServerInfo(this.minecraftServer.aG()));
+ // CraftBukkit start - fire ping event + // CraftBukkit start - fire ping event
+ if (state != WAITING) { + if (this.state != WAITING) {
+ networkManager.close(null); this.networkManager.close(PacketStatusListener.a);
- } else {
- this.d = true;
- this.networkManager.handle(new PacketStatusOutServerInfo(this.minecraftServer.aG()));
+ return; + return;
+ } }
+ state = PING; + state = PING;
+ final Object[] players = minecraftServer.getPlayerList().players.toArray(); + final Object[] players = minecraftServer.getPlayerList().players.toArray();
+ class ServerListPingEvent extends org.bukkit.event.server.ServerListPingEvent { + class ServerListPingEvent extends org.bukkit.event.server.ServerListPingEvent {
@ -126,9 +129,10 @@
public void a(PacketStatusInPing packetstatusinping) { public void a(PacketStatusInPing packetstatusinping) {
- this.networkManager.handle(new PacketStatusOutPong(packetstatusinping.a())); - this.networkManager.handle(new PacketStatusOutPong(packetstatusinping.a()));
- this.networkManager.close(PacketStatusListener.a);
+ // CraftBukkit start + // CraftBukkit start
+ if (state != PING) { + if (state != PING) {
+ networkManager.close(null); + this.networkManager.close(PacketStatusListener.a);
+ return; + return;
+ } + }
+ state = DONE; + state = DONE;

View File

@ -1,11 +0,0 @@
--- a/net/minecraft/server/SystemUtils.java
+++ b/net/minecraft/server/SystemUtils.java
@@ -32,7 +32,7 @@
Processor[] aprocessor = (new SystemInfo()).getHardware().getProcessors();
SystemUtils.a = String.format("%dx %s", new Object[] { Integer.valueOf(aprocessor.length), aprocessor[0]}).replaceAll("\\s+", " ");
- } catch (Exception exception) {
+ } catch (Throwable exception) {
;
}

View File

@ -4,7 +4,7 @@
<groupId>org.bukkit</groupId> <groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId> <artifactId>craftbukkit</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>1.8.7-R0.1-SNAPSHOT</version> <version>1.8.8-R0.1-SNAPSHOT</version>
<name>CraftBukkit</name> <name>CraftBukkit</name>
<url>http://www.bukkit.org</url> <url>http://www.bukkit.org</url>
@ -12,7 +12,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<api.version>unknown</api.version> <api.version>unknown</api.version>
<junit.version>4.11</junit.version> <junit.version>4.11</junit.version>
<minecraft.version>1.8.7</minecraft.version> <minecraft.version>1.8.8</minecraft.version>
<minecraft_version>1_8_R3</minecraft_version> <minecraft_version>1_8_R3</minecraft_version>
<buildtag.prefix>git-Bukkit-</buildtag.prefix> <buildtag.prefix>git-Bukkit-</buildtag.prefix>
<buildtag.suffix></buildtag.suffix> <buildtag.suffix></buildtag.suffix>