Previous commit for other branches.

This commit is contained in:
MobiusDevelopment 2020-02-17 09:23:02 +00:00
parent 74e32bf28d
commit 065b66becb
13 changed files with 78 additions and 130 deletions

View File

@ -47,18 +47,14 @@ public class RequestExPledgeCrestLarge implements IClientIncomingPacket
{
for (int i = 0; i <= 4; i++)
{
if (i < 4)
final int size = Math.max(Math.min(14336, data.length - (14336 * i)), 0);
if (size == 0)
{
final byte[] fullChunk = new byte[14336];
System.arraycopy(data, (14336 * i), fullChunk, 0, 14336);
client.sendPacket(new ExPledgeEmblem(_crestId, fullChunk, _clanId, i));
}
else
{
final byte[] lastChunk = new byte[8320];
System.arraycopy(data, (14336 * i), lastChunk, 0, 8320);
client.sendPacket(new ExPledgeEmblem(_crestId, lastChunk, _clanId, i));
continue;
}
final byte[] chunk = new byte[size];
System.arraycopy(data, (14336 * i), chunk, 0, size);
client.sendPacket(new ExPledgeEmblem(_crestId, chunk, _clanId, i));
}
}
}

View File

@ -47,18 +47,14 @@ public class RequestExPledgeCrestLarge implements IClientIncomingPacket
{
for (int i = 0; i <= 4; i++)
{
if (i < 4)
final int size = Math.max(Math.min(14336, data.length - (14336 * i)), 0);
if (size == 0)
{
final byte[] fullChunk = new byte[14336];
System.arraycopy(data, (14336 * i), fullChunk, 0, 14336);
client.sendPacket(new ExPledgeEmblem(_crestId, fullChunk, _clanId, i));
}
else
{
final byte[] lastChunk = new byte[8320];
System.arraycopy(data, (14336 * i), lastChunk, 0, 8320);
client.sendPacket(new ExPledgeEmblem(_crestId, lastChunk, _clanId, i));
continue;
}
final byte[] chunk = new byte[size];
System.arraycopy(data, (14336 * i), chunk, 0, size);
client.sendPacket(new ExPledgeEmblem(_crestId, chunk, _clanId, i));
}
}
}

View File

@ -47,18 +47,14 @@ public class RequestExPledgeCrestLarge implements IClientIncomingPacket
{
for (int i = 0; i <= 4; i++)
{
if (i < 4)
final int size = Math.max(Math.min(14336, data.length - (14336 * i)), 0);
if (size == 0)
{
final byte[] fullChunk = new byte[14336];
System.arraycopy(data, (14336 * i), fullChunk, 0, 14336);
client.sendPacket(new ExPledgeEmblem(_crestId, fullChunk, _clanId, i));
}
else
{
final byte[] lastChunk = new byte[8320];
System.arraycopy(data, (14336 * i), lastChunk, 0, 8320);
client.sendPacket(new ExPledgeEmblem(_crestId, lastChunk, _clanId, i));
continue;
}
final byte[] chunk = new byte[size];
System.arraycopy(data, (14336 * i), chunk, 0, size);
client.sendPacket(new ExPledgeEmblem(_crestId, chunk, _clanId, i));
}
}
}

View File

@ -47,18 +47,14 @@ public class RequestExPledgeCrestLarge implements IClientIncomingPacket
{
for (int i = 0; i <= 4; i++)
{
if (i < 4)
final int size = Math.max(Math.min(14336, data.length - (14336 * i)), 0);
if (size == 0)
{
final byte[] fullChunk = new byte[14336];
System.arraycopy(data, (14336 * i), fullChunk, 0, 14336);
client.sendPacket(new ExPledgeEmblem(_crestId, fullChunk, _clanId, i));
}
else
{
final byte[] lastChunk = new byte[8320];
System.arraycopy(data, (14336 * i), lastChunk, 0, 8320);
client.sendPacket(new ExPledgeEmblem(_crestId, lastChunk, _clanId, i));
continue;
}
final byte[] chunk = new byte[size];
System.arraycopy(data, (14336 * i), chunk, 0, size);
client.sendPacket(new ExPledgeEmblem(_crestId, chunk, _clanId, i));
}
}
}

View File

@ -47,18 +47,14 @@ public class RequestExPledgeCrestLarge implements IClientIncomingPacket
{
for (int i = 0; i <= 4; i++)
{
if (i < 4)
final int size = Math.max(Math.min(14336, data.length - (14336 * i)), 0);
if (size == 0)
{
final byte[] fullChunk = new byte[14336];
System.arraycopy(data, (14336 * i), fullChunk, 0, 14336);
client.sendPacket(new ExPledgeEmblem(_crestId, fullChunk, _clanId, i));
}
else
{
final byte[] lastChunk = new byte[8320];
System.arraycopy(data, (14336 * i), lastChunk, 0, 8320);
client.sendPacket(new ExPledgeEmblem(_crestId, lastChunk, _clanId, i));
continue;
}
final byte[] chunk = new byte[size];
System.arraycopy(data, (14336 * i), chunk, 0, size);
client.sendPacket(new ExPledgeEmblem(_crestId, chunk, _clanId, i));
}
}
}

View File

@ -47,18 +47,14 @@ public class RequestExPledgeCrestLarge implements IClientIncomingPacket
{
for (int i = 0; i <= 4; i++)
{
if (i < 4)
final int size = Math.max(Math.min(14336, data.length - (14336 * i)), 0);
if (size == 0)
{
final byte[] fullChunk = new byte[14336];
System.arraycopy(data, (14336 * i), fullChunk, 0, 14336);
client.sendPacket(new ExPledgeEmblem(_crestId, fullChunk, _clanId, i));
}
else
{
final byte[] lastChunk = new byte[8320];
System.arraycopy(data, (14336 * i), lastChunk, 0, 8320);
client.sendPacket(new ExPledgeEmblem(_crestId, lastChunk, _clanId, i));
continue;
}
final byte[] chunk = new byte[size];
System.arraycopy(data, (14336 * i), chunk, 0, size);
client.sendPacket(new ExPledgeEmblem(_crestId, chunk, _clanId, i));
}
}
}

View File

@ -47,18 +47,14 @@ public class RequestExPledgeCrestLarge implements IClientIncomingPacket
{
for (int i = 0; i <= 4; i++)
{
if (i < 4)
final int size = Math.max(Math.min(14336, data.length - (14336 * i)), 0);
if (size == 0)
{
final byte[] fullChunk = new byte[14336];
System.arraycopy(data, (14336 * i), fullChunk, 0, 14336);
client.sendPacket(new ExPledgeEmblem(_crestId, fullChunk, _clanId, i));
}
else
{
final byte[] lastChunk = new byte[8320];
System.arraycopy(data, (14336 * i), lastChunk, 0, 8320);
client.sendPacket(new ExPledgeEmblem(_crestId, lastChunk, _clanId, i));
continue;
}
final byte[] chunk = new byte[size];
System.arraycopy(data, (14336 * i), chunk, 0, size);
client.sendPacket(new ExPledgeEmblem(_crestId, chunk, _clanId, i));
}
}
}

View File

@ -47,18 +47,14 @@ public class RequestExPledgeCrestLarge implements IClientIncomingPacket
{
for (int i = 0; i <= 4; i++)
{
if (i < 4)
final int size = Math.max(Math.min(14336, data.length - (14336 * i)), 0);
if (size == 0)
{
final byte[] fullChunk = new byte[14336];
System.arraycopy(data, (14336 * i), fullChunk, 0, 14336);
client.sendPacket(new ExPledgeEmblem(_crestId, fullChunk, _clanId, i));
}
else
{
final byte[] lastChunk = new byte[8320];
System.arraycopy(data, (14336 * i), lastChunk, 0, 8320);
client.sendPacket(new ExPledgeEmblem(_crestId, lastChunk, _clanId, i));
continue;
}
final byte[] chunk = new byte[size];
System.arraycopy(data, (14336 * i), chunk, 0, size);
client.sendPacket(new ExPledgeEmblem(_crestId, chunk, _clanId, i));
}
}
}

View File

@ -47,18 +47,14 @@ public class RequestExPledgeCrestLarge implements IClientIncomingPacket
{
for (int i = 0; i <= 4; i++)
{
if (i < 4)
final int size = Math.max(Math.min(14336, data.length - (14336 * i)), 0);
if (size == 0)
{
final byte[] fullChunk = new byte[14336];
System.arraycopy(data, (14336 * i), fullChunk, 0, 14336);
client.sendPacket(new ExPledgeEmblem(_crestId, fullChunk, _clanId, i));
}
else
{
final byte[] lastChunk = new byte[8320];
System.arraycopy(data, (14336 * i), lastChunk, 0, 8320);
client.sendPacket(new ExPledgeEmblem(_crestId, lastChunk, _clanId, i));
continue;
}
final byte[] chunk = new byte[size];
System.arraycopy(data, (14336 * i), chunk, 0, size);
client.sendPacket(new ExPledgeEmblem(_crestId, chunk, _clanId, i));
}
}
}

View File

@ -47,18 +47,14 @@ public class RequestExPledgeCrestLarge implements IClientIncomingPacket
{
for (int i = 0; i <= 4; i++)
{
if (i < 4)
final int size = Math.max(Math.min(14336, data.length - (14336 * i)), 0);
if (size == 0)
{
final byte[] fullChunk = new byte[14336];
System.arraycopy(data, (14336 * i), fullChunk, 0, 14336);
client.sendPacket(new ExPledgeEmblem(_crestId, fullChunk, _clanId, i));
}
else
{
final byte[] lastChunk = new byte[8320];
System.arraycopy(data, (14336 * i), lastChunk, 0, 8320);
client.sendPacket(new ExPledgeEmblem(_crestId, lastChunk, _clanId, i));
continue;
}
final byte[] chunk = new byte[size];
System.arraycopy(data, (14336 * i), chunk, 0, size);
client.sendPacket(new ExPledgeEmblem(_crestId, chunk, _clanId, i));
}
}
}

View File

@ -47,18 +47,14 @@ public class RequestExPledgeCrestLarge implements IClientIncomingPacket
{
for (int i = 0; i <= 4; i++)
{
if (i < 4)
final int size = Math.max(Math.min(14336, data.length - (14336 * i)), 0);
if (size == 0)
{
final byte[] fullChunk = new byte[14336];
System.arraycopy(data, (14336 * i), fullChunk, 0, 14336);
client.sendPacket(new ExPledgeEmblem(_crestId, fullChunk, _clanId, i));
}
else
{
final byte[] lastChunk = new byte[8320];
System.arraycopy(data, (14336 * i), lastChunk, 0, 8320);
client.sendPacket(new ExPledgeEmblem(_crestId, lastChunk, _clanId, i));
continue;
}
final byte[] chunk = new byte[size];
System.arraycopy(data, (14336 * i), chunk, 0, size);
client.sendPacket(new ExPledgeEmblem(_crestId, chunk, _clanId, i));
}
}
}

View File

@ -47,18 +47,14 @@ public class RequestExPledgeCrestLarge implements IClientIncomingPacket
{
for (int i = 0; i <= 4; i++)
{
if (i < 4)
final int size = Math.max(Math.min(14336, data.length - (14336 * i)), 0);
if (size == 0)
{
final byte[] fullChunk = new byte[14336];
System.arraycopy(data, (14336 * i), fullChunk, 0, 14336);
client.sendPacket(new ExPledgeEmblem(_crestId, fullChunk, _clanId, i));
}
else
{
final byte[] lastChunk = new byte[8320];
System.arraycopy(data, (14336 * i), lastChunk, 0, 8320);
client.sendPacket(new ExPledgeEmblem(_crestId, lastChunk, _clanId, i));
continue;
}
final byte[] chunk = new byte[size];
System.arraycopy(data, (14336 * i), chunk, 0, size);
client.sendPacket(new ExPledgeEmblem(_crestId, chunk, _clanId, i));
}
}
}

View File

@ -47,18 +47,14 @@ public class RequestExPledgeCrestLarge implements IClientIncomingPacket
{
for (int i = 0; i <= 4; i++)
{
if (i < 4)
final int size = Math.max(Math.min(14336, data.length - (14336 * i)), 0);
if (size == 0)
{
final byte[] fullChunk = new byte[14336];
System.arraycopy(data, (14336 * i), fullChunk, 0, 14336);
client.sendPacket(new ExPledgeEmblem(_crestId, fullChunk, _clanId, i));
}
else
{
final byte[] lastChunk = new byte[8320];
System.arraycopy(data, (14336 * i), lastChunk, 0, 8320);
client.sendPacket(new ExPledgeEmblem(_crestId, lastChunk, _clanId, i));
continue;
}
final byte[] chunk = new byte[size];
System.arraycopy(data, (14336 * i), chunk, 0, size);
client.sendPacket(new ExPledgeEmblem(_crestId, chunk, _clanId, i));
}
}
}