geforkt von Mirrors/Paper
Remove Player#sendChunkChange
Method is specified according to an obsolete internal format and has not been implemented for nearly 10 years. By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
df75572760
Commit
ba1c4ea9b7
@ -638,40 +638,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
getHandle().connection.send(new PacketPlayOutEntityEquipment(entity.getEntityId(), equipment));
|
getHandle().connection.send(new PacketPlayOutEntityEquipment(entity.getEntityId(), equipment));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean sendChunkChange(Location loc, int sx, int sy, int sz, byte[] data) {
|
|
||||||
if (getHandle().connection == null) return false;
|
|
||||||
|
|
||||||
/*
|
|
||||||
int x = loc.getBlockX();
|
|
||||||
int y = loc.getBlockY();
|
|
||||||
int z = loc.getBlockZ();
|
|
||||||
|
|
||||||
int cx = x >> 4;
|
|
||||||
int cz = z >> 4;
|
|
||||||
|
|
||||||
if (sx <= 0 || sy <= 0 || sz <= 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((x + sx - 1) >> 4 != cx || (z + sz - 1) >> 4 != cz || y < 0 || y + sy > 128) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data.length != (sx * sy * sz * 5) / 2) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Packet51MapChunk packet = new Packet51MapChunk(x, y, z, sx, sy, sz, data);
|
|
||||||
|
|
||||||
getHandle().playerConnection.sendPacket(packet);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
*/
|
|
||||||
|
|
||||||
throw new NotImplementedException("Chunk changes do not yet work"); // TODO: Chunk changes.
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendMap(MapView map) {
|
public void sendMap(MapView map) {
|
||||||
if (getHandle().connection == null) return;
|
if (getHandle().connection == null) return;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren