mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-11-11 01:17:16 +00:00
Stop the disguised recieving packets
This commit is contained in:
parent
214aaa2fd9
commit
84919eeea5
1 changed files with 2 additions and 0 deletions
|
@ -96,6 +96,8 @@ public class LibsDisguises extends JavaPlugin implements Listener {
|
|||
Player observer = event.getPlayer();
|
||||
StructureModifier<Entity> entityModifer = event.getPacket().getEntityModifier(observer.getWorld());
|
||||
org.bukkit.entity.Entity entity = entityModifer.read((Packets.Server.COLLECT == event.getPacketID() ? 1 : 0));
|
||||
if (entity == observer)
|
||||
return;
|
||||
if (DisguiseAPI.isDisguised(entity)) {
|
||||
Disguise disguise = DisguiseAPI.getDisguise(entity);
|
||||
if (event.getPacketID() == 44) {
|
||||
|
|
Loading…
Reference in a new issue