mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 03:30:02 +00:00
Compare instances not .equals to determine if clone required
This commit is contained in:
parent
10bb5511a6
commit
c0d36e033b
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue