mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 19:50:30 +00:00
Fixed mentioned bug
This commit is contained in:
parent
333cbded13
commit
fd3903f311
1 changed files with 0 additions and 6 deletions
|
@ -634,12 +634,6 @@ public class LibsDisguises extends JavaPlugin {
|
||||||
StructureModifier<Object> mods = packets[0].getModifier();
|
StructureModifier<Object> mods = packets[0].getModifier();
|
||||||
byte value = (Byte) mods.read(4);
|
byte value = (Byte) mods.read(4);
|
||||||
mods.write(4, getYaw(disguise.getType(), DisguiseType.getType(entity.getType()), value));
|
mods.write(4, getYaw(disguise.getType(), DisguiseType.getType(entity.getType()), value));
|
||||||
if (sentPacket.getID() == Packets.Server.ENTITY_TELEPORT) {
|
|
||||||
Location loc = entity.getLocation();
|
|
||||||
EnumEntitySize entitySize = Values.getValues(disguise.getType()).getEntitySize();
|
|
||||||
mods.write(1, (int) Math.floor(entitySize.a(loc.getX()) * 32D));
|
|
||||||
mods.write(3, (int) Math.floor(entitySize.a(loc.getZ()) * 32D));
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue