Compare instances not .equals to determine if clone required
This commit is contained in:
parent
10bb5511a6
commit
c0d36e033b
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user