public void AttachEntity(MinecraftClient client, IPacket packet) {
            var Attach = (CBAttachEntity)packet;

            if (client.MinecraftWorld != null) {
                int eIndex = client.MinecraftWorld.GetEntityById(Attach.EntityID);

                if (eIndex != -1) {
                    client.MinecraftWorld.Entities[eIndex].attached = true;
                    client.MinecraftWorld.Entities[eIndex].Vehicle_ID = Attach.VehicleID;
                    client.MinecraftWorld.Entities[eIndex].leashed = Attach.Leash;
                }
            }

            client.RaiseEntityAttached(Attach.EntityID, Attach.VehicleID, Attach.Leash);
        }
        public void AttachEntity(MinecraftClient client, IPacket packet) {
            var attach = (CbAttachEntity)packet;

            if (client.MinecraftWorld != null) {
                var eIndex = client.MinecraftWorld.GetEntityById(attach.EntityId);

                if (eIndex != -1) {
                    client.MinecraftWorld.Entities[eIndex].Attached = true;
                    client.MinecraftWorld.Entities[eIndex].VehicleId = attach.VehicleId;
                    client.MinecraftWorld.Entities[eIndex].Leashed = attach.Leash;
                }
            }

            client.RaiseEntityAttached(attach.EntityId, attach.VehicleId, attach.Leash);
        }