Minor performance cleanup.

This commit is contained in:
libraryaddict
2014-02-07 13:50:40 +13:00
parent a36c34384f
commit 306b246f76
3 changed files with 5 additions and 9 deletions

View File

@@ -390,7 +390,7 @@ public class DisguiseUtilities {
* Method to send a packet to the self disguise, translate his entity ID to the fake id.
*/
private static void sendSelfPacket(Player player, PacketContainer packet, int fakeId) {
PacketContainer[] packets = PacketsManager.transformPacket(packet, player);
PacketContainer[] packets = PacketsManager.transformPacket(packet, player, player);
try {
for (PacketContainer p : packets) {
p = p.deepClone();