Minecraft 1.9.4

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2016-05-10 21:47:39 +10:00
parent c9a6e9175c
commit d506c12c07
236 changed files with 1471 additions and 1822 deletions

View File

@@ -1,8 +1,8 @@
--- a/net/minecraft/server/WorldMap.java
+++ b/net/minecraft/server/WorldMap.java
@@ -6,6 +6,14 @@
import java.util.List;
@@ -7,6 +7,14 @@
import java.util.Map;
import javax.annotation.Nullable;
+// CraftBukkit start
+import java.util.UUID;
@@ -15,7 +15,7 @@
public class WorldMap extends PersistentBase {
public int centerX;
@@ -18,8 +26,18 @@
@@ -19,8 +27,18 @@
private Map<EntityHuman, WorldMap.WorldMapHumanTracker> j = Maps.newHashMap();
public Map<String, MapIcon> decorations = Maps.newLinkedHashMap();
@@ -34,7 +34,7 @@
}
public void a(double d0, double d1, int i) {
@@ -32,7 +50,30 @@
@@ -33,7 +51,30 @@
}
public void a(NBTTagCompound nbttagcompound) {
@@ -66,10 +66,10 @@
this.centerX = nbttagcompound.getInt("xCenter");
this.centerZ = nbttagcompound.getInt("zCenter");
this.scale = nbttagcompound.getByte("scale");
@@ -73,6 +114,25 @@
@@ -74,6 +115,25 @@
}
public void b(NBTTagCompound nbttagcompound) {
public NBTTagCompound b(NBTTagCompound nbttagcompound) {
+ // CraftBukkit start
+ if (this.map >= 10) {
+ if (this.uniqueId == null) {
@@ -92,7 +92,7 @@
nbttagcompound.setByte("dimension", this.map);
nbttagcompound.setInt("xCenter", this.centerX);
nbttagcompound.setInt("zCenter", this.centerZ);
@@ -220,12 +280,26 @@
@@ -223,12 +283,26 @@
}
public Packet<?> a(ItemStack itemstack) {