mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
Update to Minecraft 1.11
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
public class WorldMap extends PersistentBase {
|
||||
|
||||
public int centerX;
|
||||
@@ -19,8 +27,18 @@
|
||||
private final Map<EntityHuman, WorldMap.WorldMapHumanTracker> j = Maps.newHashMap();
|
||||
@@ -20,8 +28,18 @@
|
||||
private final Map<EntityHuman, WorldMap.WorldMapHumanTracker> k = Maps.newHashMap();
|
||||
public Map<String, MapIcon> decorations = Maps.newLinkedHashMap();
|
||||
|
||||
+ // CraftBukkit start
|
||||
@@ -34,7 +34,7 @@
|
||||
}
|
||||
|
||||
public void a(double d0, double d1, int i) {
|
||||
@@ -33,7 +51,30 @@
|
||||
@@ -34,7 +52,30 @@
|
||||
}
|
||||
|
||||
public void a(NBTTagCompound nbttagcompound) {
|
||||
@@ -66,7 +66,7 @@
|
||||
this.centerX = nbttagcompound.getInt("xCenter");
|
||||
this.centerZ = nbttagcompound.getInt("zCenter");
|
||||
this.scale = nbttagcompound.getByte("scale");
|
||||
@@ -74,6 +115,25 @@
|
||||
@@ -76,6 +117,25 @@
|
||||
}
|
||||
|
||||
public NBTTagCompound b(NBTTagCompound nbttagcompound) {
|
||||
@@ -92,9 +92,9 @@
|
||||
nbttagcompound.setByte("dimension", this.map);
|
||||
nbttagcompound.setInt("xCenter", this.centerX);
|
||||
nbttagcompound.setInt("zCenter", this.centerZ);
|
||||
@@ -223,12 +283,26 @@
|
||||
}
|
||||
@@ -265,12 +325,26 @@
|
||||
|
||||
@Nullable
|
||||
public Packet<?> a(ItemStack itemstack) {
|
||||
+ // CraftBukkit start
|
||||
+ org.bukkit.craftbukkit.map.RenderData render = WorldMap.this.mapView.render((org.bukkit.craftbukkit.entity.CraftPlayer) this.trackee.getBukkitEntity()); // CraftBukkit
|
||||
@@ -104,7 +104,7 @@
|
||||
+ for ( org.bukkit.map.MapCursor cursor : render.cursors) {
|
||||
+
|
||||
+ if (cursor.isVisible()) {
|
||||
+ icons.add(new MapIcon(cursor.getRawType(), cursor.getX(), cursor.getY(), cursor.getDirection()));
|
||||
+ icons.add(new MapIcon(MapIcon.Type.a(cursor.getRawType()), cursor.getX(), cursor.getY(), cursor.getDirection()));
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
|
Reference in New Issue
Block a user