Compare instances not .equals to determine if clone required

This commit is contained in:
libraryaddict 2019-02-04 17:14:31 +13:00
parent 10bb5511a6
commit c0d36e033b

View File

@ -79,7 +79,7 @@ public class PacketListenerViewSelfDisguise extends PacketAdapter {
for (PacketContainer newPacket : transformed.getPackets()) {
if (newPacket.getType() != Server.PLAYER_INFO) {
if (newPacket.equals(packet)) {
if (newPacket == packet) {
newPacket = newPacket.shallowClone();
}